pub type Vector = Vec2;Expand description
The vector type.
Aliased Type§
#[repr(C)]pub struct Vector {
pub x: f32,
pub y: f32,
}Fields§
§x: f32§y: f32Trait Implementations§
Source§impl ComponentMul for Vector
impl ComponentMul for Vector
Source§fn component_mul(&self, other: &Self) -> Self
fn component_mul(&self, other: &Self) -> Self
Element-wise multiplication
Source§impl CrossProduct<Vec2> for Vector
Available on crate feature dim2 only.
impl CrossProduct<Vec2> for Vector
Available on crate feature
dim2 only.Source§impl CrossProductMatrix for Vector
Available on crate feature dim2 only.
impl CrossProductMatrix for Vector
Available on crate feature
dim2 only.Source§type CrossMatTr = Vec2
type CrossMatTr = Vec2
The transposed cross product matrix type.
Source§fn gcross_matrix(self) -> Self::CrossMat
fn gcross_matrix(self) -> Self::CrossMat
Returns the cross product matrix of this vector.
Source§fn gcross_matrix_tr(self) -> Self::CrossMatTr
fn gcross_matrix_tr(self) -> Self::CrossMatTr
Returns the transposed cross product matrix of this vector.
Source§impl DotProduct<Vec2> for Vector
impl DotProduct<Vec2> for Vector
Source§impl OrthonormalBasis for Vector
Available on crate feature dim2 only.
impl OrthonormalBasis for Vector
Available on crate feature
dim2 only.Source§fn orthonormal_basis(self) -> [Vector; 1]
fn orthonormal_basis(self) -> [Vector; 1]
Computes the vectors which, when combined with
self, form an orthonormal basis.Source§fn orthonormal_vector(self) -> Vector
fn orthonormal_vector(self) -> Vector
Computes a vector orthogonal to
self with a unit length (if self has a unit length).