Expand description
Geometry data types
Coord, Size and Offset are all 2D integer (i32) types,
representing positions, sizes and scroll deltas respectively.
Vec2 is a 2D floating-point (f32) type used mainly for screen-space
position during rendering.
Conversions types mostly use Cast and Conv. From may be used to
simply pack/unpack components. To convert from floating-point types to
integer types, use CastApprox or CastFloat to specify the rounding
mode.