public override bool IsPointOk(XReal tAreaX, XReal tAreaY) { var area = Area; XReal dist = XVector2.Distance( new XVector2(tAreaX, tAreaY), area.Position ); XReal distFromEdge = dist - area.Size; if (XReal.Abs(distFromEdge) > MaxDistance || XReal.Abs(distFromEdge) < MinDistance) { return(false); } return(true); }
public XReal abs(XReal v) { return(XReal.Abs(v)); }