{
public override object ConvertFromInvariantString(string value)
{
- /// public Rotation(Radian radian(float), Vector3 vector3)
- /// Default: <View Orientation="45.0,12,13,0" />
- /// Oritation="D:23, 0, 0, 1"
- /// Oritation="R:23, 0, 0, 1"
+ // public Rotation(Radian radian(float), Vector3 vector3)
+ // Default: <View Orientation="45.0,12,13,0" />
+ // Oritation="D:23, 0, 0, 1"
+ // Oritation="R:23, 0, 0, 1"
if (value != null)
{
string[] parts = value.Split(',');
string radianOrDegree = head[0].Trim().ToLowerInvariant();
if(radianOrDegree == "d" || radianOrDegree == "degree")
{
- /// Oritation="D:23, 0, 0, 1"
+ // Oritation="D:23, 0, 0, 1"
radian = new Radian( new Degree( Single.Parse( head[1].Trim(), CultureInfo.InvariantCulture ) ) );
}
else if (radianOrDegree == "r" || radianOrDegree == "radian")
{
- /// Oritation="R:23, 0, 0, 1"
+ // Oritation="R:23, 0, 0, 1"
radian = new Radian( Single.Parse( head[1].Trim(), CultureInfo.InvariantCulture ) );
}
else
if (useDefault)
{
- ///Default: <View Orientation="45.0,12,13,0" />
+ //Default: <View Orientation="45.0,12,13,0" />
radian = new Radian( Single.Parse( parts[0].Trim(), CultureInfo.InvariantCulture ) );
}