Package mgui.geometry

Class Circle2D

java.lang.Object
mgui.geometry.Shape2D
mgui.geometry.Circle2D
All Implemented Interfaces:
java.lang.Cloneable, Shape, XMLObject

public class Circle2D
extends Shape2D
Represents a 2D circle.
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Field Details

    • centerPt

      public org.jogamp.vecmath.Point2f centerPt
    • radius

      public float radius
  • Constructor Details

    • Circle2D

      public Circle2D()
    • Circle2D

      public Circle2D​(org.jogamp.vecmath.Point2f thisCenter, float thisRadius)
    • Circle2D

      public Circle2D​(float x, float y, float thisRadius)
  • Method Details

    • getVertex

      public org.jogamp.vecmath.Point2f getVertex​(int i)
      Specified by:
      getVertex in class Shape2D
    • getVertices

      public java.util.ArrayList<org.jogamp.vecmath.Point2f> getVertices()
      Specified by:
      getVertices in class Shape2D
    • setVertices

      public void setVertices​(java.util.ArrayList<org.jogamp.vecmath.Point2f> n)
      Specified by:
      setVertices in class Shape2D
    • clone

      public java.lang.Object clone()
      Overrides:
      clone in class Shape2D