Module vec2

Source
Expand description

Various position related data structures for 2d integer position handling.

Structs§

Bounds
A rectangle that includes the minimum and maximum values
Line
A line segment with a direction.
Point2d
A 2d point where you can choose the type and thus precision of the x and y indices. By default uses i64 which is the world coordinate type.

Traits§

Abs
Helper trait for computing absolute values of generic types.
Num
A helper trait for specifying generic numeric types.