glemy/physics/rect
Types
pub type Rect {
Rect(min: vector2.Vector2, max: vector2.Vector2)
}
Constructors
-
Rect(min: vector2.Vector2, max: vector2.Vector2)
Values
pub fn nearest_point(
circle_center: vector2.Vector2,
rect: Rect,
) -> vector2.Vector2
pub fn overlaps(ball: entity.Entity, rect: Rect) -> Bool
pub fn penetration_axis(ball: entity.Entity, rect: Rect) -> Axis
pub fn to_css(
rect: Rect,
bounds: bounds.Bounds,
) -> #(Float, Float, Float, Float)