Module vec2

Module vec2 

Source
Expand description

Types representing directions and locations in 2d and 3d space.

This module contains 3 major types:

All the types implement the expected Froms and all the relevant operator traits.

Structs§

Vec2
A set of 2 f32s representing a location or direction in the 2d plane.
Vec2Int
A set of 2 i32s representing a location or direction in the 2d plane.

Enums§

Direction
A cardinal direction in a 2d plane.