public FbxColor(FbxVector3 pRGB, double pAlpha = 1.0) { Red = pRGB.X; Green = pRGB.Y; Blue = pRGB.Z; Alpha = pAlpha; }
/// <summary> /// Constructor of transformation matrix for translation, rotations and scaling in form of FbxVector3. /// </summary> /// <param name="pT">Translation vector (x,y,z)</param> /// <param name="pR">Rotations around axis (x,y,z) in DEGREES</param> /// <param name="pS">Scaling vector for axes (x,y,z). </param> public FbxMatrix(FbxVector3 pT, FbxVector3 pR, FbxVector3 pS) { var s = CreateScale(pS); var x = FbxMatrix.CreateRotationX(pR.X); var y = FbxMatrix.CreateRotationY(pR.Y); var z = FbxMatrix.CreateRotationZ(pR.Z); var t = FbxMatrix.CreateTranslation(pT); var r = z * y * x; var m = t * r * s; M00 = m.M00; M10 = m.M10; M20 = m.M20; M30 = m.M30; M01 = m.M01; M11 = m.M11; M21 = m.M21; M31 = m.M31; M02 = m.M02; M12 = m.M12; M22 = m.M22; M32 = m.M32; M03 = m.M03; M13 = m.M13; M23 = m.M23; M33 = m.M33; }
public FbxVector4(FbxVector3 pValue, double pW = 1.0) { X = pValue.X; Y = pValue.Y; Z = pValue.Z; W = pW; }
public static FbxMatrix CreateScale(FbxVector3 s) { return(CreateScale(s.X, s.Y, s.Z)); }
public static FbxMatrix CreateTranslation(FbxVector3 t) { return(CreateTranslation(t.X, t.Y, t.Z)); }
public FbxVector3(FbxVector3 pValue) { X = pValue.X; Y = pValue.Y; Z = pValue.Z; }
/// <summary> /// Two FbxVector4s are equal iff all coordinates (X, Y, Z) are equal. /// </summary> /// <param name="other"></param> /// <returns></returns> public bool Equals(FbxVector3 other) { return(this.X == other.X && this.Y == other.Y && this.Z == other.Z); }