Show / Hide Table of Contents

Struct Plane

Inherited Members
ValueType.Equals(Object)
ValueType.GetHashCode()
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
public struct Plane

Constructors

| Improve this Doc View Source

Plane(Vector3, Single)

Declaration
public Plane(Vector3 inNormal, float d)
Parameters
Type Name Description
Vector3 inNormal
Single d
| Improve this Doc View Source

Plane(Vector3, Vector3)

Declaration
public Plane(Vector3 inNormal, Vector3 inPoint)
Parameters
Type Name Description
Vector3 inNormal
Vector3 inPoint
| Improve this Doc View Source

Plane(Vector3, Vector3, Vector3)

Declaration
public Plane(Vector3 a, Vector3 b, Vector3 c)
Parameters
Type Name Description
Vector3 a
Vector3 b
Vector3 c

Properties

| Improve this Doc View Source

distance

Declaration
public float distance { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

flipped

Declaration
public Plane flipped { get; }
Property Value
Type Description
Plane
| Improve this Doc View Source

normal

Declaration
public Vector3 normal { get; set; }
Property Value
Type Description
Vector3

Methods

| Improve this Doc View Source

ClosestPointOnPlane(Vector3)

Declaration
public Vector3 ClosestPointOnPlane(Vector3 point)
Parameters
Type Name Description
Vector3 point
Returns
Type Description
Vector3
| Improve this Doc View Source

Flip()

Declaration
public void Flip()
| Improve this Doc View Source

GetDistanceToPoint(Vector3)

Declaration
public float GetDistanceToPoint(Vector3 point)
Parameters
Type Name Description
Vector3 point
Returns
Type Description
Single
| Improve this Doc View Source

GetSide(Vector3)

Declaration
public bool GetSide(Vector3 point)
Parameters
Type Name Description
Vector3 point
Returns
Type Description
Boolean
| Improve this Doc View Source

Raycast(Ray, out Single)

Declaration
public bool Raycast(Ray ray, out float enter)
Parameters
Type Name Description
Ray ray
Single enter
Returns
Type Description
Boolean
| Improve this Doc View Source

SameSide(Vector3, Vector3)

Declaration
public bool SameSide(Vector3 inPt0, Vector3 inPt1)
Parameters
Type Name Description
Vector3 inPt0
Vector3 inPt1
Returns
Type Description
Boolean
| Improve this Doc View Source

Set3Points(Vector3, Vector3, Vector3)

Declaration
public void Set3Points(Vector3 a, Vector3 b, Vector3 c)
Parameters
Type Name Description
Vector3 a
Vector3 b
Vector3 c
| Improve this Doc View Source

SetNormalAndPosition(Vector3, Vector3)

Declaration
public void SetNormalAndPosition(Vector3 inNormal, Vector3 inPoint)
Parameters
Type Name Description
Vector3 inNormal
Vector3 inPoint
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
ValueType.ToString()
| Improve this Doc View Source

ToString(String)

Declaration
public string ToString(string format)
Parameters
Type Name Description
String format
Returns
Type Description
String
| Improve this Doc View Source

Translate(Plane, Vector3)

Declaration
public static Plane Translate(Plane plane, Vector3 translation)
Parameters
Type Name Description
Plane plane
Vector3 translation
Returns
Type Description
Plane
| Improve this Doc View Source

Translate(Vector3)

Declaration
public void Translate(Vector3 translation)
Parameters
Type Name Description
Vector3 translation

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX