Package mgui.geometry

Class Radius2D

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

public class Radius2D
extends Shape2D
DEV NOTE: deprecate or change; does not have fixed geometry, thus doesn't fit definition of a Shape.
Version:
1.0
Author:
Andrew Reid
  • Field Details

    • angle

      public float angle
    • length

      public float length
  • Constructor Details

    • Radius2D

      public Radius2D()
    • Radius2D

      public Radius2D​(float thisAngle, float thisLength)
      Set this radius with angle and length double values
      Parameters:
      thisAngle -
      thisLength -
    • Radius2D

      public Radius2D​(MguiFloat thisAngle, MguiFloat thisLength)
      Set this radius with angle and length arDouble objects
      Parameters:
      thisAngle -
      thisLength -
  • 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> vertices)
      Specified by:
      setVertices in class Shape2D
    • getVector

      public org.jogamp.vecmath.Vector2d getVector()
    • clone

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

      public org.jogamp.vecmath.Point2f getEndpoint​(org.jogamp.vecmath.Point2f startPt)
    • getAngleDiff

      public double getAngleDiff​(Radius2D r2)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object