Skip to main content

WorldPx

Type Alias WorldPx 

Source
pub type WorldPx = Bounded<WorldPxBounds>;

Aliased Type§

pub struct WorldPx(f32, PhantomData<WorldPxBounds>);

Tuple Fields§

§0: f32§1: PhantomData<WorldPxBounds>

Implementations§

Source§

impl WorldPx

Source

pub const ZERO: Self

Source

pub const UNBOUNDED: Self

An unbounded length — the “no limit” end of the range, used where a length is a cap rather than a magnitude (an unwrapped text run).

Source

pub fn within(self, a: Pos2, b: Pos2) -> bool

Whether a and b (world space) are within this length of each other.