pub enum HyperModel {
Klein,
Poincare,
CrossSection {
w_slice: f32,
},
}Expand description
How the 4D hyperbolic scene is projected to 3D for rendering.
Variants§
Klein
Klein (Beltrami-Klein) gnomonic projection: geodesics appear as straight lines.
Poincare
Poincaré ball model: angles are preserved, geodesics are circular arcs.
CrossSection
Cross-section: slice 4D scene at a fixed w-value, render the 3D slice.
Trait Implementations§
Source§impl Clone for HyperModel
impl Clone for HyperModel
Source§fn clone(&self) -> HyperModel
fn clone(&self) -> HyperModel
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 moreimpl Copy for HyperModel
Source§impl Debug for HyperModel
impl Debug for HyperModel
Source§impl<'de> Deserialize<'de> for HyperModel
impl<'de> Deserialize<'de> for HyperModel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HyperModel
impl PartialEq for HyperModel
Source§impl Serialize for HyperModel
impl Serialize for HyperModel
impl StructuralPartialEq for HyperModel
Auto Trait Implementations§
impl Freeze for HyperModel
impl RefUnwindSafe for HyperModel
impl Send for HyperModel
impl Sync for HyperModel
impl Unpin for HyperModel
impl UnsafeUnpin for HyperModel
impl UnwindSafe for HyperModel
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