pub struct Rhomboid {
pub a: Vec3,
pub u: Vec3,
pub v: Vec3,
pub w: Vec3,
pub texture: Texture,
}Fields§
§a: Vec3One corner
u: Vec3One edge adjacent to the corner
v: Vec3Another edge
w: Vec3Another edge
texture: TextureImplementations§
Source§impl Rhomboid
impl Rhomboid
Sourcepub fn orthogonal(self) -> Self
pub fn orthogonal(self) -> Self
Transform into a rectangular cuboid
Sourcepub fn orthonormal(self) -> Self
pub fn orthonormal(self) -> Self
Transform into a cube
pub fn build(self) -> Primitive
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rhomboid
impl RefUnwindSafe for Rhomboid
impl Send for Rhomboid
impl Sync for Rhomboid
impl Unpin for Rhomboid
impl UnwindSafe for Rhomboid
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