public static IEnumerable <float> AsEnumerable(this IXMVector vector) { yield return(vector.X); yield return(vector.Y); yield return(vector.Z); yield return(vector.W); }
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)); }
public static Assimp.Vector3D ToAssimpUV(this IXMVector v) { return(new Assimp.Vector3D(v.X, 1f - v.Y, 0f)); }
public static Assimp.Vector3D ToAssimp3D(this IXMVector v, float scale) { return(new Assimp.Vector3D(v.X * scale, v.Y * scale, v.Z * scale)); }
public static Assimp.Vector3D ToAssimp3D(this IXMVector v) { return(new Assimp.Vector3D(v.X, v.Y, v.Z)); }
public static Assimp.Vector2D ToAssimp2D(this IXMVector v) { return(new Assimp.Vector2D(v.X, v.Y)); }
public TransformedVector2D(IXMVector source, Matrix4x4 transform, bool isPoint) { this.source = source; this.transform = transform; this.isPoint = isPoint; }
public static SharpDX.Quaternion ToQuaternion(this IXMVector q) => new SharpDX.Quaternion(q.X, q.Y, q.Z, q.W);
public static SharpDX.Vector3 ToVector3(this IXMVector v) => new SharpDX.Vector3(v.X, v.Y, v.Z);
public static SharpDX.Vector2 ToVector2(this IXMVector v) => new SharpDX.Vector2(v.X, v.Y);