Trait mold2d::raycast::Polygon [] [src]

pub trait Polygon {
    fn sides(&self) -> Vec<Segment>;
    fn collision_from_side(&self, id: usize) -> Option<CollisionSide>;
}

Required Methods

Returns the sides in a polygon shape as a dynamic array of segments

Given a side number of the polygon, returns the side of the collision

Implementors