Struct iron_shapes::concepts_impl::I32Coordinates
source · pub struct I32Coordinates;Expand description
Coordinate types based on i32 as main coordinate type.
Trait Implementations§
source§impl CoordinateBase for I32Coordinates
impl CoordinateBase for I32Coordinates
source§impl CoordinateConcept for I32Coordinates
impl CoordinateConcept for I32Coordinates
§type ManhattanArea = i64
type ManhattanArea = i64
Type used for area which can be expressed without fractions. The datatype usually has a bigger range than
Coord to avoid overflows during multiplications.
For example when using i32 as Coord, a i64 is recommended as area type.§type UnsignedArea = f64
type UnsignedArea = f64
Type for unsigned area.
§type CoordinateDifference = i32
type CoordinateDifference = i32
Type for difference between coordinates. Typically the same type as
Coord when Coord is signed.§type CoordinateDistance = f64
type CoordinateDistance = f64
Type for distances. Typically a floating point type because distances cannot be represented in integers nor rationals.