23 lines
350 B
C#
23 lines
350 B
C#
|
|
|
|
|
|
|
|
|
|
static public class Vector3CmExt
|
|
{
|
|
|
|
public static Vector3Cm ToVector3Cm( this Godot.Vector3 vec ) => new Vector3Cm( vec.X.Cm, vec.Y.Cm, vec.Z.Cm );
|
|
|
|
|
|
public static Godot.Vector3 ToVector3( this Vector3Cm vecCm )
|
|
{
|
|
var xF = vecCm.x.Float;
|
|
var yF = vecCm.y.Float;
|
|
var zF = vecCm.z.Float;
|
|
|
|
return new Godot.Vector3( xF, yF, zF );
|
|
}
|
|
|
|
|
|
}
|