Method Project
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
Project(GeoVector2, GeoVector2)
Projects a vector onto another axis vector using default tolerance.
public static GeoVector2 Project(GeoVector2 vector, GeoVector2 axis)
Parameters
vectorGeoVector2The vector to project.
axisGeoVector2The axis vector.
Returns
- GeoVector2
The vector projection along the axis.
Project(GeoVector2, GeoVector2, Tolerance)
Projects a vector onto another axis vector within tolerance.
public static GeoVector2 Project(GeoVector2 vector, GeoVector2 axis, Tolerance tolerance)
Parameters
vectorGeoVector2The vector to project.
axisGeoVector2The axis vector.
toleranceToleranceThe tolerance used to detect a zero-length axis.
Returns
- GeoVector2
The vector projection along the axis, or the zero vector for a degenerate axis.