@studiokeywi/banjo - v0.0.1
    Preparing search index...

    Module math/geometry

    2D convex polygonal/circular representations and utilities for detecting and calculating various intersections and overlaps

    studioKeywi

    Classes

    Box

    A Box is a non-polygonal representation of an axis-aligned bounding box

    Circle

    A Circle is a non-polygonal round shape defined by all the points a set radius away from a central point

    Hex

    A hexagon is a 6-sided polygon

    Intersection

    Information about when a ray intersects with a circle or a segment

    Overlap

    Information about when circles and/or polygons overlap

    Polygon

    A polygon is a convex shape constructed with straight line segments

    Quad

    A quad is a 4-sided polygon

    Triangle

    A triangle is a 3-sided polygon

    Functions

    castRayAtCircle

    Casts a ray at a circle and determines if there is an intersection

    castRayAtLine

    Casts a ray at a line and determines if there is an intersection

    circlePolygonOverlap

    Whether a circle overlaps with a polygon

    circlesOverlap

    Calculate whether two circles overlap or not

    pointInCircle

    Whether a point exists within a circle

    pointInPolygon

    Whether a point exists within a polygon

    pointOnLine

    Whether a point exists on a line

    polygonCircleOverlap

    Whether a polygon overlaps with a circle

    polygonsOverlap

    Calculate whether two polygons overlap or not