Module org.dyn4j

Class DetectResult<T extends CollisionBody<E>,​E extends Fixture>

    • Constructor Detail

      • DetectResult

        public DetectResult()
        Default constructor.
      • DetectResult

        protected DetectResult​(T body,
                               E fixture)
        Full constructor.
        Parameters:
        body - the body
        fixture - the fixture
    • Method Detail

      • getBody

        public T getBody()
        Returns the body.
        Returns:
        T
      • getFixture

        public E getFixture()
        Returns the fixture.
        Returns:
        E
      • setBody

        public void setBody​(T body)
        Sets the body.
        Parameters:
        body - the body
      • setFixture

        public void setFixture​(E fixture)
        Sets the fixture.
        Parameters:
        fixture - the fixture
      • copy

        public void copy​(DetectResult<T,​E> result)
        Copies (deep) the given result to this result.
        Parameters:
        result - the result to copy