public override bool ContainsPoint(Vector3 point) { //Transform point point = R.Transform(point) - transformedPos; //Test return(PrimitiveMath.EllipsoidContains(Vector3.Zero, Size, point)); }
public override bool Intersects(BoundingBox box) { var corners = cornerbuf.Value; box.GetCorners(corners); foreach (var c in corners) { if (PrimitiveMath.EllipsoidContains(Zone.Position, Size, c)) { return(true); } } return(false); }
public override float ScaledDistance(Vector3 point) { return(PrimitiveMath.EllipsoidFunction(Zone.Position, Size, point)); }