Vec3Trait
Trait for Vec3 operations.
Fully qualified path: cairo_fp::f64::types::vec3::Vec3Trait
trait Vec3Trait
Trait functions
new
Creates a new vector from components.
Fully qualified path: cairo_fp::f64::types::vec3::Vec3Trait::new
fn new(x: Fixed, y: Fixed, z: Fixed) -> Vec3
splat
Creates a vector with all components set to the same value.
Fully qualified path: cairo_fp::f64::types::vec3::Vec3Trait::splat
fn splat(v: Fixed) -> Vec3
abs
Component-wise absolute value.
Fully qualified path: cairo_fp::f64::types::vec3::Vec3Trait::abs
fn abs(self: Vec3) -> Vec3
cross
3D cross product (returns Vec3).
Fully qualified path: cairo_fp::f64::types::vec3::Vec3Trait::cross
fn cross(self: Vec3, rhs: Vec3) -> Vec3
dot
Dot product.
Fully qualified path: cairo_fp::f64::types::vec3::Vec3Trait::dot
fn dot(self: Vec3, rhs: Vec3) -> Fixed
floor
Component-wise floor.
Fully qualified path: cairo_fp::f64::types::vec3::Vec3Trait::floor
fn floor(self: Vec3) -> Vec3
norm
Vector magnitude (length).
Fully qualified path: cairo_fp::f64::types::vec3::Vec3Trait::norm
fn norm(self: Vec3) -> Fixed
add
Add scalar to all components.
Fully qualified path: cairo_fp::f64::types::vec3::Vec3Trait::add
fn add(self: Vec3, scalar: Fixed) -> Vec3
sub
Subtract scalar from all components.
Fully qualified path: cairo_fp::f64::types::vec3::Vec3Trait::sub
fn sub(self: Vec3, scalar: Fixed) -> Vec3
mul
Multiply all components by scalar.
Fully qualified path: cairo_fp::f64::types::vec3::Vec3Trait::mul
fn mul(self: Vec3, scalar: Fixed) -> Vec3
div
Divide all components by scalar.
Fully qualified path: cairo_fp::f64::types::vec3::Vec3Trait::div
fn div(self: Vec3, scalar: Fixed) -> Vec3
rem
Remainder of all components divided by scalar.
Fully qualified path: cairo_fp::f64::types::vec3::Vec3Trait::rem
fn rem(self: Vec3, scalar: Fixed) -> Vec3