示例#1
0
        public static IEnumerable <float> AsEnumerable(this IXMVector vector)
        {
            yield return(vector.X);

            yield return(vector.Y);

            yield return(vector.Z);

            yield return(vector.W);
        }
示例#2
0
        public void SetValue(IXMVector value)
        {
            value1 = value.X;
            value2 = value.Y;
            value3 = value.Z;
            value4 = value.W;

            RaisePropertyChanged(nameof(Value1));
            RaisePropertyChanged(nameof(Value2));
            RaisePropertyChanged(nameof(Value3));
            RaisePropertyChanged(nameof(Value4));
        }
示例#3
0
 public static Assimp.Vector3D ToAssimpUV(this IXMVector v)
 {
     return(new Assimp.Vector3D(v.X, 1f - v.Y, 0f));
 }
示例#4
0
 public static Assimp.Vector3D ToAssimp3D(this IXMVector v, float scale)
 {
     return(new Assimp.Vector3D(v.X * scale, v.Y * scale, v.Z * scale));
 }
示例#5
0
 public static Assimp.Vector3D ToAssimp3D(this IXMVector v)
 {
     return(new Assimp.Vector3D(v.X, v.Y, v.Z));
 }
示例#6
0
 public static Assimp.Vector2D ToAssimp2D(this IXMVector v)
 {
     return(new Assimp.Vector2D(v.X, v.Y));
 }
示例#7
0
 public TransformedVector2D(IXMVector source, Matrix4x4 transform, bool isPoint)
 {
     this.source    = source;
     this.transform = transform;
     this.isPoint   = isPoint;
 }
示例#8
0
 public static SharpDX.Quaternion ToQuaternion(this IXMVector q) => new SharpDX.Quaternion(q.X, q.Y, q.Z, q.W);
示例#9
0
 public static SharpDX.Vector3 ToVector3(this IXMVector v) => new SharpDX.Vector3(v.X, v.Y, v.Z);
示例#10
0
 public static SharpDX.Vector2 ToVector2(this IXMVector v) => new SharpDX.Vector2(v.X, v.Y);