Interface ConstSVertex
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
SVertex
Read-only access to an
SVertex. (native type:
const HairSettings::SVertex)-
Method Summary
Modifier and TypeMethodDescriptionCopy the bishop frame of the strand in its modeled pose, computed byinit().floatReturn the inverse of the mass.floatReturn the initial distance between this vertex from the next one in the unloaded strand, computed byinit().Copy the rotation between the previous rod and this one in the unloaded strand, computed byinit().Copy the initial location of the vertex in its modeled pose.floatReturn the fraction of the way along the strand, computed byinit().Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
getBishop
Float4 getBishop()Copy the bishop frame of the strand in its modeled pose, computed byinit(). The vertex is unaffected.- Returns:
- a new vector
-
getInvMass
float getInvMass()Return the inverse of the mass. The vertex is unaffected.- Returns:
- the value
-
getLength
float getLength()Return the initial distance between this vertex from the next one in the unloaded strand, computed byinit(). The vertex is unaffected.- Returns:
- the distance
-
getOmega0
Float4 getOmega0()Copy the rotation between the previous rod and this one in the unloaded strand, computed byinit(). The vertex is unaffected.- Returns:
- a new vector
-
getPosition
Float3 getPosition()Copy the initial location of the vertex in its modeled pose. The vertex is unaffected.- Returns:
- a new vector
-
getStrandFraction
float getStrandFraction()Return the fraction of the way along the strand, computed byinit(). The vertex is unaffected.- Returns:
- the fractional distance (0=start, 1=end)
-