pub struct BladeShape {
pub tilt: f32,
pub bow: f32,
pub rounding: f32,
}Expand description
A mesh blade’s shape — decision 3’s “tilt and facing set the tip, bend sets the midpoint … normals tilt outward so a flat blade reads as rounded”.
Read by BladeLook::Blades alone; a card or a shell row carries it
unread, so switching a row’s look keeps its shape for the day it switches
back.
Fields§
§tilt: f32How far the tip leans out along the blade’s face, as the sine of the
lean, in 0..1. The blade keeps its height as its length.
bow: f32How far the middle of the blade bows back from the straight line between
its root and its tip, as a fraction of its height, in 0..=1.
rounding: f32How far the normal tilts out toward each edge, in 0..=1, so a flat
strip shades as a rounded blade.
Implementations§
Source§impl BladeShape
impl BladeShape
Trait Implementations§
Source§impl Clone for BladeShape
impl Clone for BladeShape
impl Copy for BladeShape
Source§impl Debug for BladeShape
impl Debug for BladeShape
Source§impl Default for BladeShape
impl Default for BladeShape
Source§impl PartialEq for BladeShape
impl PartialEq for BladeShape
impl StructuralPartialEq for BladeShape
Auto Trait Implementations§
impl Forget for BladeShape
impl Freeze for BladeShape
impl Move for BladeShape
impl RefUnwindSafe for BladeShape
impl Send for BladeShape
impl Sync for BladeShape
impl Unpin for BladeShape
impl UnsafeUnpin for BladeShape
impl UnwindSafe for BladeShape
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