Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

vec3

3D Vector Type (f64)

A 3-component vector using 32.32 fixed-point coordinates.

Operations

  • Vector arithmetic: add, sub, mul, div
  • Dot product and cross product (returns Vec3)
  • Norm (magnitude) calculation
  • Component-wise abs, floor
  • Scalar operations

Fully qualified path: cairo_fp::f64::types::vec3

Free functions

abs—
add—
cross—
div—
dot—
floor—
mul—
norm—
rem—
sub—

Structs

Vec3A 3D vector with fixed-point components.

Traits

Vec3TraitTrait for Vec3 operations.

Impls