All Known Implementing Classes:
Plane

public interface ConstPlane
Read-only access to an Plane. (native type: const Plane)
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    copyTo(FloatBuffer storeFloats)
    Write all 4 components to the start of the specified buffer.
    float
    Return the constant in single precision.
    Copy the normal direction.
    float
    Return the first (X) component of the normal direction.
    float
    Return the 2nd (Y) component of the normal direction.
    float
    Return the 3rd (Z) component of the normal direction.
    void
    put(FloatBuffer storeBuffer)
    Write all 4 components to the specified buffer and advance the buffer's position by 4.
    float
    Return the signed distance of the specified point.
  • Method Details

    • copyTo

      void copyTo(FloatBuffer storeFloats)
      Write all 4 components to the start of the specified buffer. The plane is unaffected.
      Parameters:
      storeFloats - the destination buffer (not null, capacity≥4)
    • getConstant

      float getConstant()
      Return the constant in single precision. The plane is unaffected.
      Returns:
      the constant value
    • getNormal

      Vec3 getNormal()
      Copy the normal direction. The plane is unaffected.
      Returns:
      a new direction vector
    • getNormalX

      float getNormalX()
      Return the first (X) component of the normal direction. The plane is unaffected.
      Returns:
      the component value
    • getNormalY

      float getNormalY()
      Return the 2nd (Y) component of the normal direction. The plane is unaffected.
      Returns:
      the component value
    • getNormalZ

      float getNormalZ()
      Return the 3rd (Z) component of the normal direction. The plane is unaffected.
      Returns:
      the component value
    • put

      void put(FloatBuffer storeBuffer)
      Write all 4 components to the specified buffer and advance the buffer's position by 4. The plane is unaffected.
      Parameters:
      storeBuffer - the destination buffer (not null)
    • signedDistance

      float signedDistance(Vec3Arg point)
      Return the signed distance of the specified point.
      Parameters:
      point - the point to measure (not null, unaffected)
      Returns:
      the signed distance