Package snap.geom
Class PointArray
java.lang.Object
snap.geom.PointArray
- All Implemented Interfaces:
Cloneable
This class represents an array of points assumed to form a polygon, quads or triangles.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPointArray
(double... theCoords) Creates a new Polygon from given x y coords. -
Method Summary
-
Field Details
-
_pointArray
protected double[] _pointArray -
_pointArrayLen
protected int _pointArrayLen
-
-
Constructor Details
-
PointArray
public PointArray(double... theCoords) Creates a new Polygon from given x y coords.
-
-
Method Details
-
getPointArray
public double[] getPointArray()Returns the raw points XY components array. -
getPointCount
public int getPointCount()Returns the point count. -
getX
public double getX(int anIndex) Returns the x at given point index. -
getY
public double getY(int anIndex) Returns the y at given point index. -
clone
Standard clone implementation.
-