Struct fretboard_layout::Factors
source · pub struct Factors {
pub x_ratio: f64,
pub y_ratio: f64,
pub treble_offset: f64,
}
Expand description
This struct contains multiplication factors used to convert the raw lengths from bridge to fret into x,y coordinates. It also contains an offset distance used to correctly orient the two scales in a multiscale design so that the desired fret is perpendicular to the centerline.
Fields§
§x_ratio: f64
§y_ratio: f64
This ratio is half the difference between the nut and bridge divided by the scale and is used in determining the X ratio
treble_offset: f64
How far forward the treble side of the bridge should start with respect to the trable side
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Factors
impl Send for Factors
impl Sync for Factors
impl Unpin for Factors
impl UnwindSafe for Factors
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