示例#1
0
 /** A translation matrix */
 public static Mat4f translation(ConstVec3f v) {
   return translation(v.x(), v.y(), v.z());
 }
示例#2
0
 /** A scale matrix */
 public static Mat4f scale(ConstVec3f v) {
   return scale(v.x(), v.y(), v.z());
 }
示例#3
0
 /** A rotation matrix around the u-axis with length 1. */
 public static Mat4f rotation(ConstVec3f u, double radians) {
   return rotation(u.x(), u.y(), u.z(), radians);
 }