Class

Plane

Plane()

A plane

Constructor

new Plane()

Constructor

View Source Math/Plane.js, line 8

Members

number

distance

Distance from origin

View Source Math/Plane.js, line 18

vec3

normal

Normal

View Source Math/Plane.js, line 25

Methods

distanceTo(x, y, z)

Get distance from a given point
Parameters:
Name Type Description
x number Point position on X
y number Point position on Y
z number Point position on Z

View Source Math/Plane.js, line 35

getDistance() → {number}

Get distance

View Source Math/Plane.js, line 109

number

getNormal() → {vec3}

Get normal

View Source Math/Plane.js, line 100

vec3

normalize() → {Plane}

Normalize

View Source Math/Plane.js, line 44

A reference to the instance
Plane

set(x, y, z, distance) → {Plane}

Set plane using a position and an origin
Parameters:
Name Type Description
x number Normal on X
y number Normal on Y
z number Normal on Z
distance number Distance from origin

View Source Math/Plane.js, line 63

A reference to the instance
Plane

setFromPoints(a, b, c) → {Plane}

Set plane using a position and an origin
Parameters:
Name Type Description
a Array.<number> Point A
b Array.<number> Point B
c Array.<number> Point C

View Source Math/Plane.js, line 78

A reference to the instance
Plane