Interface ConstGradient
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
Gradient
Read-only access to a
Gradient. (native type: HairSettings::Gradient)-
Method Summary
Modifier and TypeMethodDescriptionfloatgetMax()Return the parameter value when the fraction ismaxFraction.floatReturn the fraction at which the parameter value ismax.floatgetMin()Return the parameter value when the fraction isminFraction.floatReturn the fraction at which the parameter value ismin.voidsaveBinaryState(StreamOut stream) Write the state of this gradient to the specified stream.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
getMax
float getMax()Return the parameter value when the fraction ismaxFraction. The gradient is unaffected.- Returns:
- the parameter value
-
getMaxFraction
float getMaxFraction()Return the fraction at which the parameter value ismax. The gradient is unaffected.- Returns:
- the fraction
-
getMin
float getMin()Return the parameter value when the fraction isminFraction. The gradient is unaffected.- Returns:
- the parameter value
-
getMinFraction
float getMinFraction()Return the fraction at which the parameter value ismin. The gradient is unaffected.- Returns:
- the fraction
-
saveBinaryState
Write the state of this gradient to the specified stream. The gradient is unaffected.- Parameters:
stream- where to write objects (notnull)
-