since constructors support each other, adding explicit operators for minor reduction in typing required
This commit is contained in:
@@ -497,6 +497,16 @@ namespace OpenMetaverse
|
||||
return Cross(value1, value2);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Explicit casting for Vector3 > Vector3d
|
||||
/// </summary>
|
||||
/// <param name="value"></param>
|
||||
/// <returns></returns>
|
||||
public static explicit operator Vector3d(Vector3 value)
|
||||
{
|
||||
return new Vector3d(value);
|
||||
}
|
||||
|
||||
#endregion Operators
|
||||
|
||||
/// <summary>A vector with a value of 0,0,0</summary>
|
||||
|
||||
Reference in New Issue
Block a user