public static Vector3 ToVector3(this vec3 v) => new Vector3(v.x, v.y, v.z);
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)); }
public static quaternion AngleAxis(float angle, vec3 axis) { return(new quaternion(axis, MathExOps.Deg2Rad * angle)); }