Method ProjectOntoPlane
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
ProjectOntoPlane(GeoVector3, GeoVector3)
Projects a vector onto a plane through the origin, dropping its component along the normal.
public static GeoVector3 ProjectOntoPlane(GeoVector3 vector, GeoVector3 planeNormal)
Parameters
vectorGeoVector3The vector to project.
planeNormalGeoVector3The plane normal; it need not be normalized.
Returns
- GeoVector3
The component of the vector lying in the plane, or the vector itself for a degenerate normal.
ProjectOntoPlane(GeoVector3, GeoVector3, Tolerance)
Projects a vector onto a plane through the origin, within a tolerance.
public static GeoVector3 ProjectOntoPlane(GeoVector3 vector, GeoVector3 planeNormal, Tolerance tolerance)
Parameters
vectorGeoVector3planeNormalGeoVector3toleranceTolerance