@novorender/api / ViewFrustum
Interface: ViewFrustum
Defined in: @novorender/src/core3d/state/index.ts:118
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;
Defined in: @novorender/src/core3d/state/index.ts:126
The bottom screen edge plane of the frustum
far
readonly far: ReadonlyVec4;
Defined in: @novorender/src/core3d/state/index.ts:130
The camera's far clipping plane.
image
readonly image: ReadonlyVec4;
Defined in: @novorender/src/core3d/state/index.ts:132
A plane coincident with camera position and parallel to screen/image plane in world space.
left
readonly left: ReadonlyVec4;
Defined in: @novorender/src/core3d/state/index.ts:120
The left screen edge plane of the frustum
near
readonly near: ReadonlyVec4;
Defined in: @novorender/src/core3d/state/index.ts:128
The camera's near clipping plane.
planes
readonly planes: readonly [ReadonlyVec4, ReadonlyVec4, ReadonlyVec4, ReadonlyVec4, ReadonlyVec4, ReadonlyVec4];
Defined in: @novorender/src/core3d/state/index.ts:134
All tuple of all planes used for culling.
right
readonly right: ReadonlyVec4;
Defined in: @novorender/src/core3d/state/index.ts:122
The right screen edge plane of the frustum
top
readonly top: ReadonlyVec4;
Defined in: @novorender/src/core3d/state/index.ts:124
The top screen edge plane of the frustum