Expand description

Define the coordinate concept. This will be used to parametrize all other geometric concepts.

Required Associated Types

Type used for area. This is typically a floating point number or a rational number.

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 for unsigned area.

Type for difference between coordinates. Typically the same type as Coord when Coord is signed.

Type for distances. Typically a floating point type because distances cannot be represented in integers nor rationals.

Implementors