hidden, lineSegmentList
Constructor and Description |
---|
Axes2D()
Create an x and y axis from -1 to +1 on each axis.
|
Axes2D(double xMin,
double xMax,
double yMin,
double yMax,
double z,
int xMarks,
int yMarks)
Create an x-axis from
xMin to xMax
and a y-axis from yMin to yMax . |
Axes2D(double xMin,
double xMax,
double yMin,
double yMax,
int xMarks,
int yMarks)
Create an x-axis from
xMin to xMax
and a y-axis from yMin to yMax . |
public Axes2D()
public Axes2D(double xMin, double xMax, double yMin, double yMax, double z, int xMarks, int yMarks)
xMin
to xMax
and a y-axis from yMin
to yMax
.
The z
parameter is so that we can put the axis just above
or just below the xy-plane (say z=0.01
or z=-0.01
).
This way, the axes can be just in front of or just behind whatever
is being drawn in the xy-plane.
xMin
- left end point for the x-axisxMax
- right end point for the x-axisyMin
- bottom end point for the y-axisyMax
- top end point for the y-axisz
- offset of the axes away from the xy-planexMarks
- number of evenly spaced tick marks on the x-axisyMarks
- number of evenly spaced tick marks on the y-axispublic Axes2D(double xMin, double xMax, double yMin, double yMax, int xMarks, int yMarks)
xMin
to xMax
and a y-axis from yMin
to yMax
.xMin
- left end point for the x-axisxMax
- right end point for the x-axisyMin
- bottom end point for the y-axisyMax
- top end point for the y-axisxMarks
- number of evenly spaced tick marks on the x-axisyMarks
- number of evenly spaced tick marks on the y-axis