public static CreateRotationAA ( |
||
rot | ||
리턴 |
public void SetRotationAA(Vec3 rot, Vec3 t = default(Vec3)) { this = new Matrix34(Matrix33.CreateRotationAA(rot)); SetTranslation(t); }
public void SetRotationAA(float c, float s, Vec3 axis, Vec3 t = default(Vec3)) { this = new Matrix34(Matrix33.CreateRotationAA(c, s, axis)); M03 = t.X; M13 = t.Y; M23 = t.Z; }
/*! * Create a rotation matrix around an arbitrary axis (Eulers Theorem). * The axis is specified as an normalized Vector3. The angle is assumed to be in radians. * This function also assumes a translation-vector and stores it in the right column. * * Example: * Matrix34 m34; * Vector3 axis=GetNormalized( Vector3(-1.0f,-0.3f,0.0f) ); * m34.SetRotationAA( 3.14314f, axis, Vector3(5,5,5) ); */ public void SetRotationAA(float rad, Vec3 axis, Vec3 t = default(Vec3)) { this = new Matrix34(Matrix33.CreateRotationAA(rad, axis)); SetTranslation(t); }