Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

vec4

4D Vector Type (f64)

A 4-component vector using 32.32 fixed-point coordinates. Useful for homogeneous coordinates and SIMD-style operations.

Operations

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

Fully qualified path: cairo_fp::f64::types::vec4

Free functions

abs
add
div
dot
floor
mul
norm
rem
sub

Structs

Vec4A 4D vector with fixed-point components.

Traits

Vec4TraitTrait for Vec4 operations.

Impls