Class ShooterProjectileType.ProjectileShape.Ring
java.lang.Object
com.flarerobotics.lib.control.shooter.data.ShooterProjectileType.ProjectileShape
com.flarerobotics.lib.control.shooter.data.ShooterProjectileType.ProjectileShape.Ring
- Enclosing class:
- ShooterProjectileType.ProjectileShape
public static class ShooterProjectileType.ProjectileShape.Ring
extends ShooterProjectileType.ProjectileShape
Ring (thin circular loop). Axis orientation: Z-axis normal to ring plane. (The 2024 Game
Piece - Note)
-
Nested Class Summary
Nested classes/interfaces inherited from class com.flarerobotics.lib.control.shooter.data.ShooterProjectileType.ProjectileShape
ShooterProjectileType.ProjectileShape.CuboidHollowThin, ShooterProjectileType.ProjectileShape.CuboidSolid, ShooterProjectileType.ProjectileShape.CylinderHollowThick, ShooterProjectileType.ProjectileShape.CylinderHollowThin, ShooterProjectileType.ProjectileShape.CylinderSolid, ShooterProjectileType.ProjectileShape.Ring, ShooterProjectileType.ProjectileShape.SphereHollowThick, ShooterProjectileType.ProjectileShape.SphereHollowThin, ShooterProjectileType.ProjectileShape.SphereSolid
-
Constructor Summary
ConstructorsConstructorDescriptionRing
(double mass, double innerRadius, double outerRadius) Constructs a new Ring. -
Method Summary
-
Constructor Details
-
Ring
public Ring(double mass, double innerRadius, double outerRadius) Constructs a new Ring. (The 2024 Game Piece)- Parameters:
mass
- Total mass in kg.innerRadius
- The inner radius in meters.outerRadius
- The outer radius in meters.
-
-
Method Details
-
inertiaX
public double inertiaX()Description copied from class:ShooterProjectileType.ProjectileShape
Calculates moment of inertia about X-axis.- Specified by:
inertiaX
in classShooterProjectileType.ProjectileShape
- Returns:
- Moment of inertia about X-axis in kg*m^2.
-
inertiaY
public double inertiaY()Description copied from class:ShooterProjectileType.ProjectileShape
Calculates moment of inertia about Y-axis.- Specified by:
inertiaY
in classShooterProjectileType.ProjectileShape
- Returns:
- Moment of inertia about Y-axis in kg*m^2.
-
inertiaZ
public double inertiaZ()Description copied from class:ShooterProjectileType.ProjectileShape
Calculates moment of inertia about Z-axis.- Specified by:
inertiaZ
in classShooterProjectileType.ProjectileShape
- Returns:
- Moment of inertia about Z-axis in kg*m^2.
-