Module math

Class SweepHullDelaunay2D.Triangle

java.lang.Object
de.lmu.ifi.dbs.elki.math.geometry.SweepHullDelaunay2D.Triangle
Enclosing class:
SweepHullDelaunay2D

public static class SweepHullDelaunay2D.Triangle extends Object
Class representing a triangle, by referencing points in a list.
Author:
Erich Schubert
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    References to points in Delaunay2D.points
    int
    References to neighbor triangles
    int
    References to points in Delaunay2D.points
    int
    References to neighbor triangles
    int
    References to points in Delaunay2D.points
    int
    References to neighbor triangles
    Center vector
    double
    Circumcircle parameters
  • Constructor Summary

    Constructors
    Constructor
    Description
    Triangle(int x, int y, int z)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Test whether a point is within the circumference circle.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • a

      public int a
      References to points in Delaunay2D.points
    • b

      public int b
      References to points in Delaunay2D.points
    • c

      public int c
      References to points in Delaunay2D.points
    • ab

      public int ab
      References to neighbor triangles
    • ca

      public int ca
      References to neighbor triangles
    • bc

      public int bc
      References to neighbor triangles
    • r2

      public double r2
      Circumcircle parameters
    • m

      public Vector m
      Center vector
  • Constructor Details

    • Triangle

      public Triangle(int x, int y, int z)
      Constructor.
      Parameters:
      x -
      y -
      z -
  • Method Details

    • inCircle

      public boolean inCircle(Vector opp)
      Test whether a point is within the circumference circle.
      Parameters:
      opp - Test vector
      Returns:
      true when contained
    • toString

      public String toString()
      Overrides:
      toString in class Object