pub enum PreparedGeometry {
Lines4 {
segments: Vec<[[f32; 4]; 2]>,
},
Lines3 {
segments: Vec<[[f32; 3]; 2]>,
},
Polytope4 {
polytope: Polytope4,
scale: f32,
},
}Variants§
Lines4
Lines3
Polytope4
Edges for the wireframe and cells for the section, at canonical coordinates times scale.
Implementations§
Source§impl PreparedGeometry
impl PreparedGeometry
pub fn edges_of(topology: &Polytope4Topology, scale: f32) -> Self
Sourcepub fn bounding_radius(&self) -> f32
pub fn bounding_radius(&self) -> f32
Chart distance from the origin to the farthest vertex.
Trait Implementations§
Source§impl Clone for PreparedGeometry
impl Clone for PreparedGeometry
Source§fn clone(&self) -> PreparedGeometry
fn clone(&self) -> PreparedGeometry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PreparedGeometry
impl Debug for PreparedGeometry
Source§impl PartialEq for PreparedGeometry
impl PartialEq for PreparedGeometry
impl StructuralPartialEq for PreparedGeometry
Auto Trait Implementations§
impl Freeze for PreparedGeometry
impl RefUnwindSafe for PreparedGeometry
impl Send for PreparedGeometry
impl Sync for PreparedGeometry
impl Unpin for PreparedGeometry
impl UnsafeUnpin for PreparedGeometry
impl UnwindSafe for PreparedGeometry
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