Module org.dyn4j

Class ConvexCastResult

  • All Implemented Interfaces:
    Comparable<ConvexCastResult>

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

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

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

      • ConvexCastResult

        public ConvexCastResult()
        Deprecated.
        Default constructor.
      • ConvexCastResult

        public ConvexCastResult​(Body body,
                                BodyFixture fixture,
                                TimeOfImpact timeOfImpact)
        Deprecated.
        Full constructor.
        Parameters:
        body - the body
        fixture - the fixture
        timeOfImpact - the time of impact
    • Method Detail

      • getBody

        public Body getBody()
        Deprecated.
        Returns the body.
        Returns:
        Body
      • setBody

        public void setBody​(Body body)
        Deprecated.
        Sets the body.
        Parameters:
        body - the Body
      • getFixture

        public BodyFixture getFixture()
        Deprecated.
        Returns the fixture on the body with the smallest time of impact.
        Returns:
        BodyFixture
      • getTimeOfImpact

        public TimeOfImpact getTimeOfImpact()
        Deprecated.
        Returns the time of impact information.
        Returns:
        TimeOfImpact
      • setFixture

        public void setFixture​(BodyFixture fixture)
        Deprecated.
        Sets the fixture with the smallest time of impact.
        Parameters:
        fixture - the fixture
      • setTimeOfImpact

        public void setTimeOfImpact​(TimeOfImpact timeOfImpact)
        Deprecated.
        Sets the time of impact information.
        Parameters:
        timeOfImpact - the time of impact