Computes the parallel projection of the line 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 Line ProjectParallelOn( Plane plane, Vector3d viewDirection ) |

Visual Basic (Declaration) |
---|

Public Function ProjectParallelOn ( _ plane As Plane, _ viewDirection As Vector3d _ ) As Line |

Visual C++ |
---|

public: Line^ ProjectParallelOn( Plane^ plane, Vector3d^ viewDirection ) |

#### Parameters

- plane
- Type: ceometric.VectorGeometry..::.Plane

A plane the line is projected onto.

- viewDirection
- Type: ceometric.VectorGeometry..::.Vector3d

A vector defining the direction of the projection.

#### Return Value

Returns the parallel projection of the line onto plane in the direction of viewDirection.# Remarks

For a perpendicular projection of a line l onto a plane pl, write l.ProjectParallelOn(pl, pl.NormalVector);

# Exceptions

Exception | Condition |
---|---|

System..::.ArgumentException | The view direction is parallel to the projection plane. |

System..::.ArgumentException | The view direction is parallel to the line. |