Record Class Navx.Acceleration3d
java.lang.Object
java.lang.Record
com.studica.frc.Navx.Acceleration3d
- Record Components:
x- along the X axisy- along the Y axisz- along the Z axis
- Enclosing class:
Navx
public static record Navx.Acceleration3d(org.wpilib.units.measure.LinearAcceleration x, org.wpilib.units.measure.LinearAcceleration y, org.wpilib.units.measure.LinearAcceleration z)
extends Record
Linear acceleration along each axis.
-
Constructor Summary
ConstructorsConstructorDescriptionAcceleration3d(org.wpilib.units.measure.LinearAcceleration x, org.wpilib.units.measure.LinearAcceleration y, org.wpilib.units.measure.LinearAcceleration z) Creates an instance of aAcceleration3drecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.org.wpilib.units.measure.LinearAccelerationx()Returns the value of thexrecord component.org.wpilib.units.measure.LinearAccelerationy()Returns the value of theyrecord component.org.wpilib.units.measure.LinearAccelerationz()Returns the value of thezrecord component.
-
Constructor Details
-
Acceleration3d
public Acceleration3d(org.wpilib.units.measure.LinearAcceleration x, org.wpilib.units.measure.LinearAcceleration y, org.wpilib.units.measure.LinearAcceleration z) Creates an instance of aAcceleration3drecord class.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
x
-
y
-
z
-