Computes the parallel projection of the triangle onto a plane.
Namespace:
ceometric.VectorGeometryAssembly: ceometric.VectorGeometry (in ceometric.VectorGeometry.dll) Version: 1.8.0.0 (1.8.0.0)
Syntax
C# |
---|
public Triangle ProjectParallelOn( Plane plane, Vector3d viewDirection ) |
Visual Basic (Declaration) |
---|
Public Function ProjectParallelOn ( _ plane As Plane, _ viewDirection As Vector3d _ ) As Triangle |
Visual C++ |
---|
public: Triangle^ ProjectParallelOn( Plane^ plane, Vector3d^ viewDirection ) |
Parameters
- plane
- Type: ceometric.VectorGeometry..::.Plane
A plane the triangle is projected onto.
- viewDirection
- Type: ceometric.VectorGeometry..::.Vector3d
A vector defining the direction of the projection.
Return Value
The projection of the triangle onto plane in the direction of viewDirection.
Remarks
For an orthogonal parallel projection of a triangle tr, write
tr.ProjectParallelOn(plane, plane.NormalVector);
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentException | The view direction is parallel to the projection plane. |
System..::.ArgumentException | The view direction is parallel to the triangle plane. |