Class TriangleAABBIntersection

java.lang.Object
com.ardorcraft.voxel.TriangleAABBIntersection

public class TriangleAABBIntersection extends Object
ported from: http://jgt.akpeters.com/papers/AkenineMoller01/tribox.html
  • Constructor Details

    • TriangleAABBIntersection

      public TriangleAABBIntersection()
  • Method Details

    • intersect

      public static final boolean intersect(ReadOnlyVector3 center, ReadOnlyVector3 extent, MeshVoxelationContext.Triangle triangle)
    • intersect

      public static final boolean intersect(double cx, double cy, double cz, ReadOnlyVector3 extent, MeshVoxelationContext.Triangle triangle)
      Test if Triangle and AABB instersects Will also set triangle.normal
      Parameters:
      cx - - AABB center x value
      cy - - AABB center x value
      cz - - AABB center x value
      extent - - AABB extent of sides
      triangle - the triangle to test
      Returns:
      true if intersecting