C# Class Nexus.Objects3D.Plane3D

Defines a plane based on a normal vector and a distance along that vector from the origin.
Datei anzeigen Open project: tgjones/nexus Class Usage Examples

Public Properties

Property Type Description
D float
Normal Normal3D

Public Methods

Method Description
Normalize ( Plane3D value ) : Plane3D
Plane3D ( Normal3D normal, float d )

Creates a new plane.

Plane3D ( Point3D a, Point3D b, Point3D c )

Points must be ordered CCW

Transform ( Plane3D plane, Matrix3D matrix ) : Plane3D

Method Details

Normalize() public static method

public static Normalize ( Plane3D value ) : Plane3D
value Plane3D
return Plane3D

Plane3D() public method

Creates a new plane.
public Plane3D ( Normal3D normal, float d )
normal Normal3D The normal vector of the plane.
d float The distance of the plane along its normal from the origin.

Plane3D() public method

Points must be ordered CCW
public Plane3D ( Point3D a, Point3D b, Point3D c )
a Point3D
b Point3D
c Point3D

Transform() public static method

public static Transform ( Plane3D plane, Matrix3D matrix ) : Plane3D
plane Plane3D
matrix Matrix3D
return Plane3D

Property Details

D public_oe property

The distance of the plane along its normal from the origin. D = dot(n,p) for a given point p on the plane
public float D
return float

Normal public_oe property

The normal vector of the plane. Points x on the plane satisfy Dot(n,x) = d
public Normal3D Normal
return Normal3D