Package swervelib.math
Class Matter
java.lang.Object
swervelib.math.Matter
Object with significant mass that needs to be taken into account.
-
Field Summary
Modifier and TypeFieldDescriptiondouble
Mass in kg of object.Position in meters from robot center in 3d space. -
Constructor Summary
ConstructorDescriptionMatter
(Translation3d position, double mass) Construct an object representing some significant matter on the robot. -
Method Summary
-
Field Details
-
position
Position in meters from robot center in 3d space. -
mass
public double massMass in kg of object.
-
-
Constructor Details
-
Matter
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
Get the center mass of the object.- Returns:
- center mass = position * mass
-