interface.ViewFrustum
API > ViewFrustum
Interface: ViewFrustum
The 6 planes of a view frustum, defined in world space.
Remarks
Planes are defined as 4D half-space vectors. Points are inside the halfspace when the dot product of the half-space vector and a 4D variant of the point with w=1 is negative.
inside = dot(vec4(point, 1.), plane) < 0.;
Properties
bottom
readonly
bottom:ReadonlyVec4
The bottom screen edge plane of the frustum
Source
@novorender/core3d/state/index.ts:121
far
readonly
far:ReadonlyVec4
The camera's far clipping plane.
Source
@novorender/core3d/state/index.ts:125
image
readonly
image:ReadonlyVec4
A plane coincident with camera position and parallel to screen/image plane in world space.
Source
@novorender/core3d/state/index.ts:127
left
readonly
left:ReadonlyVec4
The left screen edge plane of the frustum
Source
@novorender/core3d/state/index.ts:115
near
readonly
near:ReadonlyVec4
The camera's near clipping plane.
Source
@novorender/core3d/state/index.ts:123
planes
readonly
planes: readonly [ReadonlyVec4
,ReadonlyVec4
,ReadonlyVec4
,ReadonlyVec4
,ReadonlyVec4
,ReadonlyVec4
]
All tuple of all planes used for culling.
Source
@novorender/core3d/state/index.ts:129
right
readonly
right:ReadonlyVec4
The right screen edge plane of the frustum
Source
@novorender/core3d/state/index.ts:117
top
readonly
top:ReadonlyVec4
The top screen edge plane of the frustum