Class DHTTrackerPlugin.TriangleSlicer

  • Enclosing class:
    DHTTrackerPlugin

    public static class DHTTrackerPlugin.TriangleSlicer
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private double h  
      private double tan60  
      private double w  
      private double w2  
      (package private) int width  
    • Constructor Summary

      Constructors 
      Constructor Description
      TriangleSlicer​(int width)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int[] findVertices​(double x, double y)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • width

        int width
      • w

        private double w
      • w2

        private double w2
      • h

        private double h
      • tan60

        private double tan60
    • Constructor Detail

      • TriangleSlicer

        public TriangleSlicer​(int width)
    • Method Detail

      • findVertices

        public int[] findVertices​(double x,
                                  double y)
        Parameters:
        x -
        y -
        Returns:
        an array of int values being x,y coordinate pairs