﻿<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets  xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
   <CodeSnippet Format="1.0.0">
        <Header>
            <Title> Calculate basic trignometric functions using degree values </Title>
            <Description> Expansion snippet to calculate trignometric functions using degree values.  </Description>
            <Author>Microsoft Corporation</Author>
            <SnippetTypes>          
                <SnippetType> Expansion </SnippetType>
            </SnippetTypes>
        </Header>
        <Snippet>
            <Declarations>
                <Literal>
                    <ID> DoubleValue </ID>
                    <Default> dValue </Default>
                    <ToolTip> Variable to hold double value of the angle in degrees. </ToolTip>
                </Literal>
            </Declarations>
            <Code Language="vjsharp" Format="CData"><![CDATA[
double dSineValue = java.lang.Math.sin(java.lang.Math.toRadians($DoubleValue$));
$selected$ $end$
]]>
</Code>
        </Snippet>
    </CodeSnippet>
</CodeSnippets>
