Class: Plane
Plane mathematics class
Constructors
Properties
Methods
Constructors
constructor
• new Plane(pos
, normal
): Plane
Constructs a new plane object
Parameters
Name | Type | Description |
---|---|---|
pos | Vector3 | Plane position |
normal | Vector3 | Plane normal quantity |
Returns
Defined in
Properties
point
• point: Vector3
Center position of plane
Defined in
normal
• normal: Vector3
= Vector3.UP
Plane normal vector
Defined in
Methods
clone
▸ clone(): Plane
Clones the current plane object
Returns
New plane object
Defined in
intersectsLine
▸ intersectsLine(start
, end
, point
): boolean
Determine whether the plane intersects a line segment and calculate the intersection point
Parameters
Name | Type | Description |
---|---|---|
start | Vector3 | Starting point of line segment |
end | Vector3 | End point of line segment |
point | Vector3 | Point of output intersection |
Returns
boolean
Returns whether it intersects
Defined in
intersectsRay
▸ intersectsRay(ray
, targetPoint?
): boolean
Determine whether the plane intersects a ray and calculate the intersection point
Parameters
Name | Type | Description |
---|---|---|
ray | Ray | Ray of input |
targetPoint? | Vector3 | - |
Returns
boolean
Returns whether it intersects