[−][src]Struct rgx::math::algebra::Vector3
3D vector.
Fields
x: S
y: S
z: S
Methods
impl<S> Vector3<S>
[src]
pub const fn new(x: S, y: S, z: S) -> Self
[src]
pub fn extend(self, w: S) -> Vector4<S>
[src]
Extend vector to four dimensions.
Trait Implementations
impl<S: Clone> Clone for Vector3<S>
[src]
impl<S: Copy> Copy for Vector3<S>
[src]
impl<S: Debug> Debug for Vector3<S>
[src]
impl<S: Eq> Eq for Vector3<S>
[src]
impl<T: Copy> From<[T; 3]> for Vector3<T>
[src]
impl<S: Hash> Hash for Vector3<S>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Mul<Vector3<f32>> for Matrix4<f32>
[src]
Transform a Vector3
with a Matrix4
.
use rgx::math::*; let m = Matrix4::from_translation(Vector3::new(8., 8., 0.)); let v = Vector3::new(1., 1., 0.); assert_eq!(m * v, Vector3::new(9., 9., 0.));
type Output = Vector3<f32>
The resulting type after applying the *
operator.
fn mul(self, vec: Vector3<f32>) -> Vector3<f32>
[src]
impl<S: PartialEq> PartialEq<Vector3<S>> for Vector3<S>
[src]
impl<S> StructuralEq for Vector3<S>
[src]
impl<S> StructuralPartialEq for Vector3<S>
[src]
Auto Trait Implementations
impl<S> RefUnwindSafe for Vector3<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for Vector3<S> where
S: Send,
S: Send,
impl<S> Sync for Vector3<S> where
S: Sync,
S: Sync,
impl<S> Unpin for Vector3<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for Vector3<S> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,