Struct array3d::Vec3
[−]
[src]
pub struct Vec3<X, Y = X, Z = Y> { pub x: X, pub y: Y, pub z: Z, }
Fields
x: X
y: Y
z: Z
Trait Implementations
impl<X: Copy, Y: Copy, Z: Copy> Copy for Vec3<X, Y, Z>
[src]
impl<X: Debug, Y: Debug, Z: Debug> Debug for Vec3<X, Y, Z>
[src]
impl<X: Clone, Y: Clone, Z: Clone> Clone for Vec3<X, Y, Z>
[src]
fn clone(&self) -> Vec3<X, Y, Z>
[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
impl<T> Index<i32> for Vec3<T>
[src]
type Output = T
The returned type after indexing.
fn index(&self, i: i32) -> &T
[src]
Performs the indexing (container[index]
) operation.