Class Circle

java.lang.Object
hoverball.debug.Debug
hoverball.debug.Circle

public class Circle
extends Debug
Plots a circle or a circular arc.
  • Field Summary

    Fields inherited from class hoverball.debug.Debug

    color, debugs
  • Constructor Summary

    Constructors 
    Constructor Description
    Circle​(Vector p, double r)
    Creates a circular debug.
    Circle​(Vector p, double r, double alpha, double phi)
    Creates a circular arc debug with starting angle and arc length.
  • Method Summary

    Modifier and Type Method Description
    void paint​(java.awt.Graphics g, java.awt.Color color, java.awt.Color globe, double scale, Sphere sphere, Matrix base, boolean front)
    [Implementation]

    Methods inherited from class hoverball.debug.Debug

    color, scale, vector

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Circle

      public Circle​(Vector p, double r)
      Creates a circular debug.
      Parameters:
      p - center
      r - radius (spherical angle)
    • Circle

      public Circle​(Vector p, double r, double alpha, double phi)
      Creates a circular arc debug with starting angle and arc length.
      Parameters:
      p - center
      r - radius (spherical angle)
      alpha - starting angle
      phi - arc length
  • Method Details

    • paint

      public void paint​(java.awt.Graphics g, java.awt.Color color, java.awt.Color globe, double scale, Sphere sphere, Matrix base, boolean front)
      [Implementation]
      Overrides:
      paint in class Debug
      Parameters:
      g - Graphics Context
      color - color of the debug
      globe - color of the sphere
      scale - scaling (sphere radius in pixels)
      sphere - game sphere
      base - perspective matrix
      front - front or back?