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 smallest 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 normals inside-out.static boolean
isNotScaled
(Vec3Arg scale) Test whether the specified scale is close to identity.
-
Field Details
-
cMinScale
public static final float cMinScaleThe smallest 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 normals inside-out.- Parameters:
scale
- the scale vector to test (not null, unaffected)- Returns:
true
if it turns normals inside-out, otherwisefalse
-
isNotScaled
Test whether the specified scale is close to identity.- Parameters:
scale
- the scale vector to test (not null, unaffected)- Returns:
true
if identity, otherwisefalse
-