Module org.dyn4j

Class RaycastResult

  • All Implemented Interfaces:
    Comparable<RaycastResult>

    @Deprecated
    public class RaycastResult
    extends Object
    implements Comparable<RaycastResult>
    Deprecated.
    Deprecated in 4.0.0. Use the RaycastResult in the world package instead.
    Represents the result of a raycast.

    Implements the Comparable interface to allow for sorting by the distance.

    Note: this class has a natural ordering that is inconsistent with equals.

    Since:
    2.0.0
    Version:
    4.0.0
    Author:
    William Bittle
    • Constructor Detail

      • RaycastResult

        public RaycastResult()
        Deprecated.
        Default constructor.
      • RaycastResult

        public RaycastResult​(Body body,
                             BodyFixture fixture,
                             Raycast raycast)
        Deprecated.
        Full constructor.
        Parameters:
        body - the body
        fixture - the fixture
        raycast - the raycast