Class: Plane

Plane

new Plane(normal, distance)

平面

Name Type Default Description
normal Vector3 new Vector3 optional

法线

distance Number 0 optional

距离

Members Show Inherited

Name Type Default Description
className String Plane

类名

isPlane Boolean true

Methods Show Inherited

Copy the values from one plane to this

Name Type Description
m Plane

the source plane

Returns:
Type Description
Plane this

Creates a new plane initialized with values from this plane

Returns:
Type Description
Plane a new Plane

set(x, y, z, w){Plane}

[set description]

Name Type Description
x Number

法线 x

y Number

法线 y

z Number

法线 z

w Number

距离

Returns:
Type Description
Plane this

normalize(){Plane}

归一化

Returns:
Type Description
Plane this

distanceToPoint(point){Number}

与点的距离

Name Type Description
point Vector3
Returns:
Type Description
Number

projectPoint(point){Vector3}

投影点

Name Type Description
point Vector3
Returns:
Type Description
Vector3