Skip to main content

Module view

Module view 

Source
Expand description

Interactive orthographic and perspective cameras with zoom-to-fit, depth-range fitting, and world/screen conversion shared by native and web.

Screen coordinates are CSS pixels: origin at the top left, y increasing down. Device pixel ratio affects surface sizing, not camera math.

Structs§

Ray
A world-space ray for picking.
ViewCamera

Enums§

Projection
The projection kind (R21): orthographic is the default; the toggle keeps the apparent size at the target plane.

Functions§

add3
cross3
dot3
invert4_columns
Inverse of a column-major 4×4 matrix (index = col*4 + row layout). Returns None if singular. Used to invert the view-projection for the host overlays’ screen→world path.
len3
norm3
rotate3
Rotate v around unit axis by angle (Rodrigues).
scale3
sub3