pub struct KleinPoint {
pub coords: FixedVector,
pub weight: FixedPoint,
}Expand description
A point in the Klein projective model of hyperbolic space.
In the Klein model, geodesics are Euclidean straight lines (chords), which makes power diagram bisectors into Euclidean hyperplanes.
Fields§
§coords: FixedVectorKlein disk coordinates (||coords|| < 1)
weight: FixedPointPower weight: w = 1 - ||coords||²
Implementations§
Source§impl KleinPoint
impl KleinPoint
Trait Implementations§
Source§impl Clone for KleinPoint
impl Clone for KleinPoint
Source§fn clone(&self) -> KleinPoint
fn clone(&self) -> KleinPoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for KleinPoint
impl RefUnwindSafe for KleinPoint
impl Send for KleinPoint
impl Sync for KleinPoint
impl Unpin for KleinPoint
impl UnsafeUnpin for KleinPoint
impl UnwindSafe for KleinPoint
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