Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Plane

Constructs a Plane from arbitrary coefficients A, B, C, D of the plane equation Ax + By + Cz + Dw = 0.
Read time 2 minutesLast updated 11 days ago

Definition

Plane(float, float, float, float)

Constructs a Plane from arbitrary coefficients A, B, C, D of the plane equation Ax + By + Cz + Dw = 0.
public Plane(float coefficientA, float coefficientB, float coefficientC, float coefficientD)

Parameters

coefficientA

Coefficient A from plane equation.

coefficientB

Coefficient B from plane equation.

coefficientC

Coefficient C from plane equation.

coefficientD

Coefficient D from plane equation.

Remarks

The constructed plane will be the normalized form of the plane specified by the given coefficients.

Plane(float3, float)

Constructs a plane with a normal vector and distance from the origin.
public Plane(float3 normal, float distance)

Parameters

normal

A non-zero vector that is perpendicular to the plane. It may be any length.

distance

Distance from the origin along the normal. A negative value moves the plane in the same direction as the normal while a positive value moves it in the opposite direction.

Remarks

The constructed plane will be the normalized form of the plane specified by the inputs.

Plane(float3, float3)

Constructs a plane with a normal vector and a point that lies in the plane.
public Plane(float3 normal, float3 pointInPlane)

Parameters

normal

A non-zero vector that is perpendicular to the plane. It may be any length.

pointInPlane

A point that lies in the plane.

Remarks

The constructed plane will be the normalized form of the plane specified by the inputs.

Plane(float3, float3, float3)

Constructs a plane with two vectors and a point that all lie in the plane.
public Plane(float3 vector1InPlane, float3 vector2InPlane, float3 pointInPlane)

Parameters

vector1InPlane

A non-zero vector that lies in the plane. It may be any length.

vector2InPlane

A non-zero vector that lies in the plane. It may be any length and must not be a scalar multiple of
vector1InPlane
.

pointInPlane

A point that lies in the plane.

Remarks

The constructed plane will be the normalized form of the plane specified by the inputs.