Пример #1
0
 public void setRotation(Vector3 axis, double angle)
 {
     rotation = Matrix4.CreateFromAxisAngle(axis, (float)angle);
     createTransform();
 }
Пример #2
0
 public void Rotate(Vector3 axis, double angle)
 {
     rotation = Matrix4.Mult(rotation, Matrix4.CreateFromAxisAngle(axis, (float)angle));
     createTransform();
 }
Пример #3
0
 public void RotateBy(Vector3 vec, float angle)
 {
     transform *= Matrix4.CreateFromAxisAngle(vec, angle);
 }