Plane

More information can be found in the Unity API Reference

Constructors

Constructor

Description

Plane()

Plane(inNormal, inPoint)

Plane(inNormal, d)

Plane(a, b, c)

Members

Member

Description

distance

flipped

normal

Methods

Method

Description

ClosestPointOnPlane(point)

Flip()

GetDistanceToPoint(point)

GetSide(point)

Raycast(ray, enter)

SameSide(inPt0, inPt1)

Set3Points(a, b, c)

SetNormalAndPosition(inNormal, inPoint)

ToString()

ToString(format)

Translate(translation)

Static methods

Method

Description

Translate(plane, translation)

Details

class Plane
Plane Plane(Vector3 inNormal, Vector3 inPoint)
Plane Plane(Vector3 inNormal, float d)
Plane Plane(Vector3 a, Vector3 b, Vector3 c)
Plane Plane()
float distance
const Plane flipped
Vector3 normal
Vector3 ClosestPointOnPlane(Vector3 point)
void Flip()
float GetDistanceToPoint(Vector3 point)
bool GetSide(Vector3 point)
bool Raycast(Ray ray, float enter)
bool SameSide(Vector3 inPt0, Vector3 inPt1)
void Set3Points(Vector3 a, Vector3 b, Vector3 c)
void SetNormalAndPosition(Vector3 inNormal, Vector3 inPoint)
string ToString()
string ToString(string format)
void Translate(Vector3 translation)
static Plane Translate(Plane plane, Vector3 translation)