Returns the distance from the point to the box, (-ve if the
point is inside the box), and optionally the closest point on
the box.
TODO make this actually return -ve if inside
todo remove this/put it in distance fns
Namespace: JigLibX.GeometryAssembly: JigLibX (in JigLibX.dll) Version: 0.3.1.0
Syntax
C# |
---|
public float GetDistanceToPoint( out Vector3 closestBoxPoint, Vector3 point ) |
Visual Basic |
---|
Public Function GetDistanceToPoint ( _ <OutAttribute> ByRef closestBoxPoint As Vector3, _ point As Vector3 _ ) As Single |
Visual C++ |
---|
public: float GetDistanceToPoint( [OutAttribute] Vector3% closestBoxPoint, Vector3 point ) |
Parameters
- closestBoxPoint
- Type: Vector3%
[Missing <param name="closestBoxPoint"/> documentation for "M:JigLibX.Geometry.Box.GetDistanceToPoint(Microsoft.Xna.Framework.Vector3@,Microsoft.Xna.Framework.Vector3)"]
- point
- Type: Vector3
[Missing <param name="point"/> documentation for "M:JigLibX.Geometry.Box.GetDistanceToPoint(Microsoft.Xna.Framework.Vector3@,Microsoft.Xna.Framework.Vector3)"]