public static vec2 vec2Field(string label, vec2 value, bool showLength = false, params GUILayoutOption[] options) { return(MathExGUI.vec2Field(MathExGUILayout.s_LastRect = EditorGUILayout.GetControlRect(false, 16f, EditorStyles.numberField, options), label, value, showLength)); }
public T Find <T>(vec2 point) { throw new NotImplementedException(); }
public static Vector2 ToVector2(this vec2 v) => new Vector2(v.x, v.y);
public static Vector3 ToVector3(this vec2 v) => new Vector3(v.x, v.y, 0);
public static Vector2 Div(this Vector2 l, vec2 r) { return(new Vector2(l.x / r.x, l.y / r.y)); }
public static Vector3 Div(this Vector3 l, vec2 r) { return(new Vector3(l.x / r.x, l.y / r.y, l.z)); }
public static Vector2 Mul(this Vector2 l, vec2 r) { return(new Vector2(l.x * r.x, l.y * r.y)); }
public static Vector3 Mul(this Vector3 l, vec2 r) { return(new Vector3(l.x * r.x, l.y * r.y, l.z)); }
public static Vector2 Sub(this Vector2 l, vec2 r) { return(new Vector2(l.x - r.x, l.y - r.y)); }
public static Vector3 Sub(this Vector3 l, vec2 r) { return(new Vector3(l.x - r.x, l.y - r.y, l.z)); }
public static Vector3 Add(this Vector3 l, vec2 r) { return(new Vector3(l.x + r.x, l.y + r.y, l.z)); }
public static Vector2 Add(this Vector2 l, vec2 r) { return(new Vector2(l.x + r.x, l.y + r.y)); }
public bool Equals(vec2 obj) { return(obj == this); }
public static float Dot(vec2 l, vec2 r) { return(l.x * r.x + l.y * r.y); }
public static vec2 Max(vec2 a, vec2 b) { return(new vec2(Math.Max(a.x, b.x), Math.Max(a.y, b.y))); }