Vec2Trait
Trait for Vec2 operations.
Fully qualified path: cairo_fp::f64::types::vec2::Vec2Trait
trait Vec2Trait
Trait functions
new
Creates a new vector from components.
Fully qualified path: cairo_fp::f64::types::vec2::Vec2Trait::new
fn new(x: Fixed, y: Fixed) -> Vec2
splat
Creates a vector with all components set to the same value.
Fully qualified path: cairo_fp::f64::types::vec2::Vec2Trait::splat
fn splat(v: Fixed) -> Vec2
abs
Component-wise absolute value.
Fully qualified path: cairo_fp::f64::types::vec2::Vec2Trait::abs
fn abs(self: Vec2) -> Vec2
cross
2D cross product (returns scalar: x1_y2 - y1_x2).
Fully qualified path: cairo_fp::f64::types::vec2::Vec2Trait::cross
fn cross(self: Vec2, rhs: Vec2) -> Fixed
dot
Dot product.
Fully qualified path: cairo_fp::f64::types::vec2::Vec2Trait::dot
fn dot(self: Vec2, rhs: Vec2) -> Fixed
floor
Component-wise floor.
Fully qualified path: cairo_fp::f64::types::vec2::Vec2Trait::floor
fn floor(self: Vec2) -> Vec2
norm
Vector magnitude (length).
Fully qualified path: cairo_fp::f64::types::vec2::Vec2Trait::norm
fn norm(self: Vec2) -> Fixed