pub struct GlyphSolid { /* private fields */ }Implementations§
Source§impl GlyphSolid
impl GlyphSolid
pub fn ch(&self) -> char
pub fn pen_origin(&self) -> Vec2
pub fn advance(&self) -> f32
pub fn is_blank(&self) -> bool
pub fn field(&self) -> Option<&DistanceField2D>
pub fn piece_count(&self) -> usize
Sourcepub fn collider_cover(&self) -> Option<&Isovolume<2>>
pub fn collider_cover(&self) -> Option<&Isovolume<2>>
Use Self::collider_margin for the enclosure bound of this scaled field.
pub fn collider_count(&self) -> usize
Sourcepub fn collider_margin(&self) -> f32
pub fn collider_margin(&self) -> f32
Upper bound on how far the collider cover reaches past the letter’s baked surface.
Sourcepub fn distance_2d(&self, p: Vec2) -> f32
pub fn distance_2d(&self, p: Vec2) -> f32
Negative inside.
Sourcepub fn distance_4d(&self, p: Vec4) -> f32
pub fn distance_4d(&self, p: Vec4) -> f32
Negative inside, with bilinear xy distance and exact z and w interval distances.
Sourcepub fn colliders_4d(&self) -> Vec<(Vec4, Shape)>
pub fn colliders_4d(&self) -> Vec<(Vec4, Shape)>
Origin-centred box colliders for static geometry; use Self::rigid_hull_4d for a single dynamic body.
pub fn rigid_hull_sides(&self) -> usize
Sourcepub fn rigid_hull_4d(&self) -> Option<(Vec4, Shape)>
pub fn rigid_hull_4d(&self) -> Option<(Vec4, Shape)>
A convex prism with at most 32 vertices, centred at its centre of mass; fills glyph counters.
Trait Implementations§
Source§impl Clone for GlyphSolid
impl Clone for GlyphSolid
Source§fn clone(&self) -> GlyphSolid
fn clone(&self) -> GlyphSolid
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 GlyphSolid
impl Debug for GlyphSolid
Source§impl Visualizable<3> for GlyphSolid
impl Visualizable<3> for GlyphSolid
fn to_triangles(&self) -> Result<TriangleMesh<3>, NotVisualizable>
fn to_lines(&self) -> Result<LineMesh<3>, NotVisualizable>
fn to_points(&self) -> Result<PointMesh<3>, NotVisualizable>
Auto Trait Implementations§
impl Freeze for GlyphSolid
impl RefUnwindSafe for GlyphSolid
impl Send for GlyphSolid
impl Sync for GlyphSolid
impl Unpin for GlyphSolid
impl UnsafeUnpin for GlyphSolid
impl UnwindSafe for GlyphSolid
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