java.lang.Object
com.github.stephengold.joltjni.ScaleHelpers
Utilities to test a scaling vector for various properties. (native namespace:
ScaleHelpers)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final float
The smalled valid scale factor.static final float
The tolerance used when comparing components of a scale vector. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isInsideOut
(Vec3Arg scale) Test whether the specified scale turns 3-D objects inside-out.static boolean
isNotScaled
(Vec3Arg scale) Test whether the specified scale is identity.
-
Field Details
-
cMinScale
public static final float cMinScaleThe smalled valid scale factor.- See Also:
-
cScaleToleranceSq
public static final float cScaleToleranceSqThe tolerance used when comparing components of a scale vector.- See Also:
-
-
Method Details
-
isInsideOut
Test whether the specified scale turns 3-D objects inside-out.- Parameters:
scale
- the scale vector to test (not null, unaffected)- Returns:
true
if it turns objects inside-out, otherwisefalse
-
isNotScaled
Test whether the specified scale is identity.- Parameters:
scale
- the scale vector to test (not null, unaffected)- Returns:
true
if identity, otherwisefalse
-