Trait building_blocks::prelude::FloatPoint[][src]

pub trait FloatPoint<N>: IntoIntegerPoint + Point<Scalar = f32> {
    fn round(self) -> Self;
fn floor(self) -> Self;
fn ceil(self) -> Self;
fn fract(self) -> Self; fn floor_int(self) -> Self::IntPoint { ... } }

Required methods

Provided methods

Ensures that you floor before casting to integers, since this is not the default behavior for negative integers.

Implementors