Class IntrTriangle2Triangle2f

  • All Implemented Interfaces:
    java.io.Serializable

    public class IntrTriangle2Triangle2f
    extends Intersector
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • IntrTriangle2Triangle2f

        public IntrTriangle2Triangle2f()
      • IntrTriangle2Triangle2f

        public IntrTriangle2Triangle2f​(Triangle2f triangle0,
                                       Triangle2f triangle1)
    • Method Detail

      • Test

        public boolean Test()
        Description copied from class: Intersector
        Static intersection queries. The default implementations return 'false'. The Find query produces a set of intersection. The derived class is responsible for providing access to that set, since the nature of the set is dependent on the object types.
        Overrides:
        Test in class Intersector
        Returns:
        false
      • Find

        public boolean Find()
        Description copied from class: Intersector
        Static intersection queries. The default implementations return 'false'. The Find query produces a set of intersection. The derived class is responsible for providing access to that set, since the nature of the set is dependent on the object types.
        Overrides:
        Find in class Intersector
        Returns:
        false
      • ClipConvexPolygonAgainstLine

        private void ClipConvexPolygonAgainstLine​(Vector2f N,
                                                  float c,
                                                  int[] quantity,
                                                  Vector2f[] V)
      • GetQuantity

        public int GetQuantity()
      • GetPoint

        public Vector2f GetPoint​(int i)
      • ToLine

        public static int ToLine​(Vector2f[] vertices,
                                 Vector2f test,
                                 int v0,
                                 int v1)
      • ToTriangle

        public static int ToTriangle​(Vector2f[] vertices,
                                     Vector2f test,
                                     int v0,
                                     int v1,
                                     int v2)
      • Det2

        private static float Det2​(float x0,
                                  float y0,
                                  float x1,
                                  float y1)
      • Sort

        private static boolean Sort​(int[] v0,
                                    int[] v1)