Beispiel #1
0
        public static JMatrix ToJMatrix(this quat q)
        {
            mat3 m = new mat3(q);

            return(new JMatrix(m.m00, m.m10, m.m20, m.m01, m.m11, m.m21, m.m02, m.m12, m.m22));
        }
Beispiel #2
0
 public static string Axis(string name, Colour32 colour, quat basis, v4 pos, float size = 1f)
 {
     return(Axis(name, colour, new m4x4(basis, pos), size));
 }
Beispiel #3
0
 public void SetTransform(vec3 position, quat orientation)
 {
     Position    = position;
     Orientation = orientation;
 }
Beispiel #4
0
 public static extern void gs_matrix_rotquat(out quat rot);
Beispiel #5
0
 public void Rotate(float angle, vec3 axis) => Orientation = Orientation.Rotated(angle, axis);