Package 

Class RayInformation

  • All Implemented Interfaces:

    
    public final class RayInformation
    
                        

    Ray information class to store relevant data about rays and any intersection found.

    • Constructor Detail

      • RayInformation

        RayInformation(TranslatableBody b, Double x, Double y, Integer index)
        Constructor to store information about a ray intersection.
        Parameters:
        b - Body involved with ray intersection.
        x - x position of intersection.
        y - y position of intersection.
        index - Index of shapes side that intersection intersects.
      • RayInformation

        RayInformation(TranslatableBody b, Vec2 v, Integer index)
        Convenience constructor equivalent to .
        Parameters:
        b - Body involved with ray intersection.
        v - x/y position of intersection.
        index - Index of shapes side that intersection intersects.