Class Matter

java.lang.Object
swervelib.math.Matter

public class Matter extends Object
Object with significant mass that needs to be taken into account.
  • Field Details

    • position

      public Translation3d position
      Position in meters from robot center in 3d space.
    • mass

      public double mass
      Mass in kg of object.
  • Constructor Details

    • Matter

      public Matter(Translation3d position, double mass)
      Construct an object representing some significant matter on the robot.
      Parameters:
      position - Position of the matter in meters.
      mass - Mass in kg.
  • Method Details

    • massMoment

      public Translation3d massMoment()
      Get the center mass of the object.
      Returns:
      center mass = position * mass