Table of Contents

Class Plane3D

Namespace
HelixToolkit.Wpf
Assembly
HelixToolkit.Wpf.dll

Represents a plane in three-dimensional space.

public class Plane3D
Inheritance
Plane3D
Inherited Members
Extension Methods

Constructors

Plane3D()

Initializes a new instance of the Plane3D class.

public Plane3D()

Plane3D(Point3D, Vector3D)

Initializes a new instance of the Plane3D class.

public Plane3D(Point3D position, Vector3D normal)

Parameters

position Point3D

The p0.

normal Vector3D

The n.

Properties

Normal

Gets or sets the normal.

public Vector3D Normal { get; set; }

Property Value

Vector3D

The normal.

Position

Gets or sets the position.

public Point3D Position { get; set; }

Property Value

Point3D

The position.

Methods

DistanceTo(Vector3D)

Calculates the distance from a point to a plane.

public double DistanceTo(Vector3D point)

Parameters

point Vector3D

The point used to calculate distance

Returns

double

The distance from given point to the given plane
Equal zero: Point on the plane
Greater than zero: The point is on the same side of the plane's normal vector
Less than zero: The point is on the opposite side of the plane's normal vector

LineIntersection(Vector3D, Vector3D)

Finds the intersection between the plane and a line.

public Vector3D? LineIntersection(Vector3D la, Vector3D lb)

Parameters

la Vector3D

The first point defining the line.

lb Vector3D

The second point defining the line.

Returns

Vector3D?

The intersection point.

Project(Vector3D)

Calculates the projection of a point onto a plane.

public Vector3D Project(Vector3D point)

Parameters

point Vector3D

The point used to calculate projection

Returns

Vector3D

The projection of a given point on a given plane.