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

    Class Intersection

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

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    angle: number = 0

    Angle at which the intersection occurred (in radians)

    distance: number = Infinity

    Distance away from the ray origin where the intersection occurred

    normal: Vector2 = ...

    Normal vector to the vector that was hit

    vector: Vector2 = ...

    Location of the intersection

    Methods

    • Resets Intersection state for reuse

      Returns void