Struct vodk_math::vec4::Vector4D
[−]
[src]
pub struct Vector4D<Unit = Untyped> { pub x: f32, pub y: f32, pub z: f32, pub w: f32, // some fields omitted }
Fields
x: f32
y: f32
z: f32
w: f32
Methods
impl<U> Vector4D<U>
[src]
fn new(x: f32, y: f32, z: f32, w: f32) -> Vector4D<U>
fn from_slice(from: &[f32]) -> Vector4D<U>
fn as_slice<'l>(&'l self) -> &'l [f32]
fn as_mut_slice<'l>(&'l mut self) -> &'l mut [f32]
fn dot(&self, rhs: &Vector4D<U>) -> f32
fn length(&self) -> f32
fn square_length(&self) -> f32
fn tuple(&self) -> (f32, f32, f32, f32)
fn array(&self) -> [f32; 4]
fn xy(&self) -> Vector2D<U>
fn xz(&self) -> Vector2D<U>
fn yz(&self) -> Vector2D<U>
fn yx(&self) -> Vector2D<U>
fn xyz(&self) -> Vector3D<U>
fn zxy(&self) -> Vector3D<U>
fn yzx(&self) -> Vector3D<U>
fn xzy(&self) -> Vector3D<U>
fn yxz(&self) -> Vector3D<U>
fn wxyz(&self) -> Vector4D<U>
Trait Implementations
impl<U> AsRef<[f32; 4]> for Vector4D<U>
[src]
impl<U> AsRef<(f32, f32, f32, f32)> for Vector4D<U>
[src]
impl<U> AsMut<[f32; 4]> for Vector4D<U>
[src]
impl<U> AsMut<(f32, f32, f32, f32)> for Vector4D<U>
[src]
impl<U> Default for Vector4D<U>
[src]
impl<U> PartialEq for Vector4D<U>
[src]
fn eq(&self, rhs: &Vector4D<U>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl<U> Add<Vector4D<U>> for Vector4D<U>
[src]
type Output = Vector4D<U>
The resulting type after applying the +
operator
fn add(self, rhs: Vector4D<U>) -> Vector4D<U>
The method for the +
operator
impl<U> Sub<Vector4D<U>> for Vector4D<U>
[src]
type Output = Vector4D<U>
The resulting type after applying the -
operator
fn sub(self, rhs: Vector4D<U>) -> Vector4D<U>
The method for the -
operator
impl<U> Mul<Vector4D<U>> for Vector4D<U>
[src]
type Output = Vector4D<U>
The resulting type after applying the *
operator
fn mul(self, rhs: Vector4D<U>) -> Vector4D<U>
The method for the *
operator
impl<U> Div<Vector4D<U>> for Vector4D<U>
[src]
type Output = Vector4D<U>
The resulting type after applying the /
operator
fn div(self, rhs: Vector4D<U>) -> Vector4D<U>
The method for the /
operator
impl<U> Neg for Vector4D<U>
[src]
type Output = Vector4D<U>
The resulting type after applying the -
operator
fn neg(self) -> Vector4D<U>
The method for the unary -
operator
impl<U> Copy for Vector4D<U>
[src]
impl<U> Clone for Vector4D<U>
[src]
fn clone(&self) -> Vector4D<U>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more