All Superinterfaces:
AutoCloseable, Comparable<JoltPhysicsObject>, ConstJoltPhysicsObject
All Known Implementing Classes:
SVertex

public interface ConstSVertex extends ConstJoltPhysicsObject
Read-only access to an SVertex. (native type: const HairSettings::SVertex)
  • Method Summary

    Modifier and Type
    Method
    Description
    Copy the bishop frame of the strand in its modeled pose, computed by init().
    float
    Return the inverse of the mass.
    float
    Return the initial distance between this vertex from the next one in the unloaded strand, computed by init().
    Copy the rotation between the previous rod and this one in the unloaded strand, computed by init().
    Copy the initial location of the vertex in its modeled pose.
    float
    Return the fraction of the way along the strand, computed by init().

    Methods inherited from interface java.lang.Comparable

    compareTo

    Methods 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 by init(). 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 by init(). 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 by init(). 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 by init(). The vertex is unaffected.
      Returns:
      the fractional distance (0=start, 1=end)