public bool Contains(Vector2f v) { if (v.EitherComponentLessThan(lowerLeftCorner)) { return(false); } if (v.EitherComponentGreaterThan(upperRightCorner)) { return(false); } Vector2f dif; if (v.x > _base.x) { dif = v - baseRight; } else { dif = v - baseLeft; } return(Mathf.Abs(dif.SafeSlope) < halfXDims.Slope); }