Skip to main content

Module camera3d

Module camera3d 

Source
Expand description

Types and functions for 3D rendering.

Structs§

Camera3d
Represents a camera (“view”) positioned and oriented in a 3D scene with a 3D transformation and a 3D projection.
PerspectiveFov
Parameters for a perspective projection based on vertical field-of-view angle
Projection3d
The 3D projection which can be either perspective or orthographic

Enums§

Projection3dInner
Either a Perspective or Orthographic projection

Functions§

aspect_ratio
Computes floating point ‘width/height’ ratio from unsigned resolution input
transform_mat_world_to_view
Builds a 4x4 transformation matrix that will transform points in world space coordinates to view space coordinates for a given view position and orientation.