Computes the parallel projection of the edge onto a plane.

Namespace:  ceometric.VectorGeometry
Assembly:  ceometric.VectorGeometry (in ceometric.VectorGeometry.dll) Version: 1.8.0.0 (1.8.0.0)

Syntax

C#
public Edge ProjectParallelOn(
	Plane plane,
	Vector3d viewDirection
)
Visual Basic (Declaration)
Public Function ProjectParallelOn ( _
	plane As Plane, _
	viewDirection As Vector3d _
) As Edge
Visual C++
public:
Edge^ ProjectParallelOn(
	Plane^ plane, 
	Vector3d^ viewDirection
)

Parameters

plane
Type: ceometric.VectorGeometry..::.Plane
A plane the edge is projected onto.
viewDirection
Type: ceometric.VectorGeometry..::.Vector3d
A vector defining the direction of the projection.

Return Value

Returns the parallel projection of the edge onto plane in the direction of viewDirection.

Returns a zero-length edge if viewDirection is collinear to the edge.

Remarks

For an orthogonal parallel projection of an edge e onto a plane pl, write e.ProjectParallelOn(pl, pl.NormalVector);

Exceptions

ExceptionCondition
System..::.ArgumentExceptionThe view direction is parallel to the projection plane.

See Also