#[repr(C)]pub struct Vector3D<S = f32, U = ()> {
pub x: S,
pub y: S,
pub z: S,
/* private fields */
}
Expand description
3D vector.
Fields§
§x: S
§y: S
§z: S
Implementations§
Trait Implementations§
source§impl Mul<Vector3D<f32, ()>> for Transform3D<f32>
impl Mul<Vector3D<f32, ()>> for Transform3D<f32>
Transform a Vector3D
with a Transform3D
.
use rgx::math::*;
let m = Transform3D::from_translation(Vector3D::new(8., 8., 0.));
let v = Vector3D::new(1., 1., 0.);
assert_eq!(m * v, Vector3D::new(9., 9., 0.));
source§impl<S: PartialEq, U: PartialEq> PartialEq<Vector3D<S, U>> for Vector3D<S, U>
impl<S: PartialEq, U: PartialEq> PartialEq<Vector3D<S, U>> for Vector3D<S, U>
impl<S: Copy, U: Copy> Copy for Vector3D<S, U>
impl<S: Eq, U: Eq> Eq for Vector3D<S, U>
impl<S, U> StructuralEq for Vector3D<S, U>
impl<S, U> StructuralPartialEq for Vector3D<S, U>
Auto Trait Implementations§
impl<S, U> RefUnwindSafe for Vector3D<S, U>where S: RefUnwindSafe, U: RefUnwindSafe,
impl<S, U> Send for Vector3D<S, U>where S: Send, U: Send,
impl<S, U> Sync for Vector3D<S, U>where S: Sync, U: Sync,
impl<S, U> Unpin for Vector3D<S, U>where S: Unpin, U: Unpin,
impl<S, U> UnwindSafe for Vector3D<S, U>where S: UnwindSafe, U: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more