Gets a "signed" distance between point and plane in 3D.
Namespace: Ico.Windows.Media.Media3DAssembly: Ico3DControlsLibrary (in Ico3DControlsLibrary.dll) Version: 10.97.212.0 (10.97.212.00)
Syntax
C# |
---|
public static double PointPlaneDistance(
Point3D point,
Point3D planeCenter,
Vector3D planeNormal
) |
Visual Basic |
---|
Public Shared Function PointPlaneDistance ( _
point As Point3D, _
planeCenter As Point3D, _
planeNormal As Vector3D _
) As Double |
JScript |
---|
public static function PointPlaneDistance(
point : Point3D,
planeCenter : Point3D,
planeNormal : Vector3D
) : double |
Parameters
- point
- Type: System.Windows.Media.Media3D..::..Point3D
Point to be tested.
- planeCenter
- Type: System.Windows.Media.Media3D..::..Point3D
Point in the plane.
- planeNormal
- Type: System.Windows.Media.Media3D..::..Vector3D
Normal of the plane.
Return Value
Positive value - point lies "in front" of the plane (according to direction of the normal).
Negative value - point lies "behind" the plane (according to direction of the normal).
Zero - point lies in the plane.
NaN - distance cannot be specified due to incorrect plane normal.
See Also