Enum Class EOverrideMassProperties
java.lang.Object
java.lang.Enum<EOverrideMassProperties>
com.github.stephengold.joltjni.enumerate.EOverrideMassProperties
- All Implemented Interfaces:
Serializable
,Comparable<EOverrideMassProperties>
,Constable
Enumerate ways the
mMassPropertiesOverride
field of
BodyCreationSettings
can be used.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptiontake the mass frommMassPropertiesOverride
; calculate inertia based on the shape and masscalculate mass and inertia based on densitytake the mass and inertia directly frommMassPropertiesOverride
-
Method Summary
Modifier and TypeMethodDescriptionstatic EOverrideMassProperties
Returns the enum constant of this class with the specified name.static EOverrideMassProperties[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CalculateMassAndInertia
calculate mass and inertia based on density -
CalculateInertia
take the mass frommMassPropertiesOverride
; calculate inertia based on the shape and mass -
MassAndInertiaProvided
take the mass and inertia directly frommMassPropertiesOverride
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-