Package mgui.geometry

Class PointSet2D

java.lang.Object
mgui.geometry.Shape2D
mgui.geometry.PointSet2D
All Implemented Interfaces:
java.lang.Cloneable, Shape, XMLObject
Direct Known Subclasses:
Graph2D

public class PointSet2D
extends Shape2D
Represents a set of 2D points.
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Field Details

    • n

      public int n
    • nodes

      public float[] nodes
  • Constructor Details

    • PointSet2D

      public PointSet2D()
    • PointSet2D

      public PointSet2D​(float[] nodes)
  • Method Details

    • getVertex

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

      public void addNode​(org.jogamp.vecmath.Point2f p)
    • resizeArray

      protected void resizeArray()
    • finalize

      public void finalize()
      Overrides:
      finalize in class java.lang.Object
    • 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