private void GetPositionValue(out Pointi pos) { NoesisGUI_PINVOKE.Mouse_GetPositionValue(swigCPtr, out pos); if (NoesisGUI_PINVOKE.SWIGPendingException.Pending) { throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve(); } }
public static Pointi Parse(string str) { Pointi p; if (Pointi.TryParse(str, out p)) { return(p); } throw new ArgumentException("Cannot create Pointi from '" + str + "'"); }
public static bool TryParse(string str, out Pointi result) { bool ret = NoesisGUI_PINVOKE.Pointi_TryParse(str != null ? str : string.Empty, out result); if (NoesisGUI_PINVOKE.SWIGPendingException.Pending) { throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
private void GetPositionValue(out Pointi pos) { NoesisGUI_PINVOKE.Mouse_GetPositionValue(swigCPtr, out pos); #if UNITY_EDITOR || NOESIS_API if (NoesisGUI_PINVOKE.SWIGPendingException.Pending) { throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve(); } #endif }
public void Expand(Pointi point) { float right = Right; float bottom = Bottom; X = System.Math.Min(X, point.X); Y = System.Math.Min(Y, point.Y); Width = (uint)(System.Math.Max(right, point.X) - X); Height = (uint)(System.Math.Max(bottom, point.Y) - Y); }
public static bool TryParse(string str, out Pointi result) { bool ret = NoesisGUI_PINVOKE.Pointi_TryParse(str != null ? str : string.Empty, out result); #if UNITY_EDITOR || NOESIS_API if (NoesisGUI_PINVOKE.SWIGPendingException.Pending) { throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve(); } #endif return(ret); }
public void Offset(Pointi offset) { Offset(offset.X, offset.Y); }
public static float Dot(Pointi v0, Pointi v1) { return(v0.X * v1.X + v0.Y * v1.Y); }
public Recti(Pointi p, Sizei size) : this(p.X, p.Y, size.Width, size.Height) { }
public bool Contains(Pointi point) { return(Contains(point.X, point.Y)); }
public Point(Pointi point) : this((float)point.X, (float)point.Y) { }
public Sizei(Pointi point) : this((uint)point.X, (uint)point.Y) { }
public bool Equals(Pointi v) { return(this == v); }
public static float PerpDot(Pointi v0, Pointi v1) { return(v0.X * v1.Y - v0.Y * v1.X); }
public static float LengthSquared(Pointi v) { return(v.X * v.X + v.Y * v.Y); }
public static Pointi Perpendicular(Pointi v, bool cw) { return(cw ? PerpendicularCW(v) : PerpendicularCCW(v)); }
public static Pointi PerpendicularCW(Pointi v) { return(new Pointi(v.Y, -v.X)); }