Class ShooterProjectileType.ProjectileShape.SphereHollowThin
java.lang.Object
com.flarerobotics.lib.control.shooter.data.ShooterProjectileType.ProjectileShape
com.flarerobotics.lib.control.shooter.data.ShooterProjectileType.ProjectileShape.SphereHollowThin
- Enclosing class:
- ShooterProjectileType.ProjectileShape
public static class ShooterProjectileType.ProjectileShape.SphereHollowThin
extends ShooterProjectileType.ProjectileShape
Thin-walled hollow sphere. Axis orientation: All axes equivalent through center.
-
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
ConstructorsConstructorDescriptionSphereHollowThin
(double mass, double radius) Constructs a new SphereHollowThin. -
Method Summary
-
Constructor Details
-
SphereHollowThin
public SphereHollowThin(double mass, double radius) Constructs a new SphereHollowThin.- Parameters:
mass
- Total mass in kg.radius
- 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.
-