Example #1
0
 public static Vector3 ToVector3(this vec3 v) => new Vector3(v.x, v.y, v.z);
Example #2
0
 public static vec3 vec3Field(string label, vec3 value, bool showLength = false, params GUILayoutOption[] options)
 {
     return(MathExGUI.vec3Field(MathExGUILayout.s_LastRect = EditorGUILayout.GetControlRect(false, 16f, EditorStyles.numberField, options), label, value, showLength));
 }
Example #3
0
 public static quaternion AngleAxis(float angle, vec3 axis)
 {
     return(new quaternion(axis, MathExOps.Deg2Rad * angle));
 }