Interface ScreenProjectionResult
interface ScreenProjectionResult {
behindCamera: boolean;
clipped: boolean;
clipW: number;
cssX: number;
cssY: number;
offscreen: boolean;
x: number;
y: number;
z: number;
}
behindCamera: boolean;
clipped: boolean;
clipW: number;
cssX: number;
cssY: number;
offscreen: boolean;
x: number;
y: number;
z: number;
}
Hierarchy (View Summary)
- Vec3
- ScreenProjectionResult
Properties
behind Camera
behindCamera: boolean
True when the point's left-handed view-space Z is at or behind the camera plane.
clipped
clipped: boolean
True when the point is outside any WebGPU clip plane or is non-finite.
clip W
clipW: number
Homogeneous clip-space W before perspective divide.
css X
cssX: number
css Y
cssY: number
offscreen
offscreen: boolean
True when the point cannot appear inside the viewport's 2D rectangle, including negative clip W.
x
x: number
y
y: number
z
z: number
Projected world point.
x/yare canvas backing pixels;cssX/cssYare canvas-relative CSS pixels;zis WebGPU NDC depth.