Type Definition moon_engine::math::Point
source · [−]pub type Point = Vec2;
Expand description
A Point
is an alias to Vec2.
Trait Implementations
sourceimpl Collide<Matrix<f32, Const<2>, Const<1>, ArrayStorage<f32, 2, 1>>> for Point
impl Collide<Matrix<f32, Const<2>, Const<1>, ArrayStorage<f32, 2, 1>>> for Point
Point and Point Collsion
sourceimpl Collider for Point
impl Collider for Point
sourcefn get_bounding_box(&self) -> AABB
fn get_bounding_box(&self) -> AABB
Get a bounding box for a Point
, using POINT_BOUNDING_SIZE
as its size
sourcefn get_center(&self) -> Point
fn get_center(&self) -> Point
Get the center of the Point
Collider