Interface LinearInstantVelocityKinematic

    • Method Detail

      • getLinearSpeed

        @Pure
        default double getLinearSpeed()
        Returns the linear speed of this object in m/s.

        The sign of the linear speed indicates if the object is going forward (positive) or backward (negative).

        Returns:
        the linear speed of this object in m/s.
      • getLinearSpeed

        @Pure
        double getLinearSpeed​(SpeedUnit unit)
        Returns the Linear speed of this object.

        The sign of the linear speed indicates if the object is going forward (positive) or backward (negative).

        Parameters:
        unit - the unit in which the speed will be given.
        Returns:
        the linear speed of this object in the given unit.
      • getLinearVelocity3D

        @Pure
        default Vector3D<?,​?> getLinearVelocity3D()
        Replies the instant velocity of the object. The velocity is the motion vector with a length equal to the speed replied by getLinearSpeed().

        This function replies the velocity in 3D if possible.

        Returns:
        the velocity of the object.
      • getLinearVelocity2D

        @Pure
        default Vector2D<?,​?> getLinearVelocity2D()
        Replies the instant velocity of the object. The velocity is the motion vector with a length equal to the speed replied by getLinearSpeed().

        This function replies the velocity in 2D if possible.

        Returns:
        the velocity of the object.
      • getLinearVelocity1D5

        @Pure
        default Vector1D<?,​?,​?> getLinearVelocity1D5()
        Replies the instant velocity of the object. The velocity is the motion vector with a length equal to the speed replied by getLinearSpeed().

        This function replies the velocity in 1.5D if possible.

        Returns:
        the velocity of the object.
      • getLinearVelocity1D

        @Pure
        default double getLinearVelocity1D()
        Replies the instant velocity of the object. The velocity is the motion vector with a length equal to the speed replied by getLinearSpeed().

        This function replies the velocity in 1D if possible.

        Returns:
        the velocity of the object.