Scripting API

Plane

struct in UnityEngine · UnityEngine.CoreModule

14 of 18 of Unity's membersUnity's documentation
In Tassix

An infinite plane: a normal and the distance from the origin along it.

Constructors 1

Plane(Vector3 inNormal, Vector3 inPoint)
Plane(in Vector3 inNormal, in Vector3 inPoint)
Plane(Vector3 inNormal, float d)
Plane(in Vector3 inNormal, float d)
Plane(Vector3 a, Vector3 b, Vector3 c)
Plane(in Vector3 a, in Vector3 b, in Vector3 c)

Properties 3

float distance { get; set; }
Plane flipped { get; }
Vector3 normal { get; set; }

Methods 10

Vector3 ClosestPointOnPlane(Vector3 point)
Vector3 ClosestPointOnPlane(in Vector3 point)
void Flip()
float GetDistanceToPoint(Vector3 point)
float GetDistanceToPoint(in Vector3 point)
bool GetSide(Vector3 point)
bool GetSide(in Vector3 point)
bool Raycast(Ray ray, out float enter)
bool Raycast(in Ray ray, out float enter)

Where the ray crosses the plane: the distance along it (negative behind the origin, 0 when parallel).

bool SameSide(Vector3 inPt0, Vector3 inPt1)
bool SameSide(in Vector3 inPt0, in Vector3 inPt1)
void Set3Points(Vector3 a, Vector3 b, Vector3 c)
void Set3Points(in Vector3 a, in Vector3 b, in Vector3 c)
void SetNormalAndPosition(Vector3 inNormal, Vector3 inPoint)
void SetNormalAndPosition(in Vector3 inNormal, in Vector3 inPoint)
string ToString()
string ToString(string? format)
string ToString(string? format, IFormatProvider? formatProvider)
void Translate(Vector3 translation)
void Translate(in Vector3 translation)
static Plane Translate(Plane plane, Vector3 translation)
static Plane Translate(in Plane plane, in Vector3 translation)

Not in Tassix yet 4

Equals GetHashCode operator != operator ==