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 floatThe smallest valid scale factor.static final floatThe tolerance used when comparing components of a scale vector. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisInsideOut(Vec3Arg scale) Test whether the specified scale turns 3-D normals inside-out.static booleanisNotScaled(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:
trueif 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:
trueif identity, otherwisefalse
-