pub struct Normal {
pub x: f32,
pub y: f32,
pub z: f32,
}
Expand description
3D Normal struct.
Note: a 3D normal is a 3D vector with norm equal to 1, but
it acts differently when 3D transformation
is applied.
So is better to create 2 two different objects (structs) despite similarity
and doubling the code.
Fields§
§x: f32
x component.
y: f32
y component.
z: f32
z component.
Implementations§
Trait Implementations§
source§impl Mul<Normal> for Transformation
impl Mul<Normal> for Transformation
source§impl PartialEq for Normal
impl PartialEq for Normal
impl Copy for Normal
impl StructuralPartialEq for Normal
Auto Trait Implementations§
impl RefUnwindSafe for Normal
impl Send for Normal
impl Sync for Normal
impl Unpin for Normal
impl UnwindSafe for Normal
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