Class ShooterProjectileType.ProjectileShape.CylinderHollowThin
java.lang.Object
com.flarerobotics.lib.control.shooter.data.ShooterProjectileType.ProjectileShape
com.flarerobotics.lib.control.shooter.data.ShooterProjectileType.ProjectileShape.CylinderHollowThin
- Enclosing class:
- ShooterProjectileType.ProjectileShape
public static class ShooterProjectileType.ProjectileShape.CylinderHollowThin
extends ShooterProjectileType.ProjectileShape
Thin-walled hollow cylinder. Axis orientation: Z-axis along central axis.
-
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
ConstructorsConstructorDescriptionCylinderHollowThin
(double mass, double radius, double height) Constructs a new CylinderHollowThin. -
Method Summary
-
Constructor Details
-
CylinderHollowThin
public CylinderHollowThin(double mass, double radius, double height) Constructs a new CylinderHollowThin.- Parameters:
mass
- Total mass in kg.radius
- Radius in meters.height
- Height along Z-axis 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.
-