Struct axgeom::ComputedVec2
[−]
[src]
pub struct ComputedVec2 { /* fields omitted */ }
A wrapper around a Vec2 with the f32 length and length sqr saved. Useful when you want to cache the length computation.
Methods
impl ComputedVec2
[src]
fn new(vec: Vec2) -> ComputedVec2
[src]
fn len(&self) -> f32
[src]
fn get_vec(&self) -> &Vec2
[src]
Get a read only reference to the underlying vec.
Trait Implementations
impl Copy for ComputedVec2
[src]
impl Clone for ComputedVec2
[src]
fn clone(&self) -> ComputedVec2
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more