ALMOST_ONE
ADD, ALPHA, ALT, AMBIENT, ARC, ARGB, ARROW, BACKSPACE, BASELINE, BEVEL, BEZIER_VERTEX, BLEND, BLUR, BOTTOM, BOX, BREAK, BURN, CENTER, CHATTER, CHORD, CLAMP, CLOSE, CODED, COMPLAINT, CONTROL, CORNER, CORNERS, CROSS, CURVE_VERTEX, CUSTOM, DARKEST, DEG_TO_RAD, DELETE, DIAMETER, DIFFERENCE, DILATE, DIRECTIONAL, DISABLE_ASYNC_SAVEFRAME, DISABLE_BUFFER_READING, DISABLE_DEPTH_MASK, DISABLE_DEPTH_SORT, DISABLE_DEPTH_TEST, DISABLE_KEY_REPEAT, DISABLE_NATIVE_FONTS, DISABLE_OPENGL_ERRORS, DISABLE_OPTIMIZED_STROKE, DISABLE_STROKE_PERSPECTIVE, DISABLE_STROKE_PURE, DISABLE_TEXTURE_MIPMAPS, DODGE, DOWN, DXF, ELLIPSE, ENABLE_ASYNC_SAVEFRAME, ENABLE_BUFFER_READING, ENABLE_DEPTH_MASK, ENABLE_DEPTH_SORT, ENABLE_DEPTH_TEST, ENABLE_KEY_REPEAT, ENABLE_NATIVE_FONTS, ENABLE_OPENGL_ERRORS, ENABLE_OPTIMIZED_STROKE, ENABLE_STROKE_PERSPECTIVE, ENABLE_STROKE_PURE, ENABLE_TEXTURE_MIPMAPS, ENTER, EPSILON, ERODE, ESC, EXCLUSION, FX2D, GIF, GRAY, GROUP, HALF_PI, HAND, HARD_LIGHT, HINT_COUNT, HSB, IMAGE, INVERT, JAVA2D, JPEG, LANDSCAPE, LEFT, LIGHTEST, LINE, LINE_LOOP, LINE_STRIP, LINES, LINUX, MACOSX, MAX_FLOAT, MAX_INT, MIN_FLOAT, MIN_INT, MITER, MODEL, MODELVIEW, MOVE, MULTIPLY, NORMAL, OPAQUE, OPEN, OPENGL, ORTHOGRAPHIC, OTHER, OVERLAY, P2D, P3D, PATH, PDF, PERSPECTIVE, PI, PIE, platformNames, POINT, POINTS, POLYGON, PORTRAIT, POSTERIZE, PROBLEM, PROJECT, PROJECTION, QUAD, QUAD_BEZIER_VERTEX, QUAD_STRIP, QUADRATIC_VERTEX, QUADS, QUARTER_PI, RAD_TO_DEG, RADIUS, RECT, REPEAT, REPLACE, RETURN, RGB, RIGHT, ROUND, SCREEN, SHAPE, SHIFT, SOFT_LIGHT, SPAN, SPHERE, SPOT, SQUARE, SUBTRACT, SVG, TAB, TARGA, TAU, TEXT, THIRD_PI, THRESHOLD, TIFF, TOP, TRIANGLE, TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP, VERTEX, WAIT, WHITESPACE, WINDOWS, X, Y, Z
Constructor and Description |
---|
Circle(Circle c)
Copy constructor.
|
Circle(float x,
float y,
float radius) |
Circle(Point center,
float radius) |
Modifier and Type | Method and Description |
---|---|
Circle |
clone()
Getters *****
|
void |
draw(processing.core.PGraphics g)
Behavior *****
|
void |
draw(processing.core.PGraphics g,
float u1,
float u2)
Draws a segment of the path starting at trace(u1) and ending at
trace(u2).
|
Point |
getCenter()
Gives the center point of the Circle.
|
float |
getCenx()
Gives the x-coordinate of the center point of the Circle.
|
float |
getCeny()
Gives the y-coordinate of the center point of the Circle.
|
float |
getDiameter()
Gives the diameter of the Circle.
|
float |
getGap(int i)
Gives the ith discontinuity in the Path as a 1D coordinate.
|
int |
getGapCount()
Returns the number of discontinuities in the Path.
|
float |
getLength()
Returns the length of the Path.
|
float |
getRadius()
Gives the radius of the Circle.
|
float |
getStartAngle() |
boolean |
isGap(float u)
Indicates whether or not there is a gap exactly at the 1D coordinate u.
|
void |
setCenter(float x,
float y)
Sets the center point of the Circle.
|
void |
setCenter(Point center)
Sets the center point of the Circle.
|
void |
setDiameter(float diam)
Set the diameter of the Circle.
|
void |
setRadius(float radius)
Set the radius.
|
void |
setStartAngle(float startAngle) |
java.lang.String |
toString() |
void |
trace(Point target,
float u)
Given a 1D coordinate, a float, maps the coordinate to a 2D coordinate
and stores it in a given Point.
|
void |
translate(float dx,
float dy)
Events *****
|
addOneOfEachPathType, compute1DSegmentLength, compute2DSegmentLength, derivePath, derivePath, draw, draw, draw, getDefaultSamplesPerUnitLength, getFill, getFillColor, getOneOfEachPathType, getSampleCount, getSlope, getStroke, getStrokeCap, getStrokeColor, getStrokeJoin, getStrokeWeight, isGap, isReversed, remainder, reverse, setDefaultSamplesPerUnitLength, setFill, setFillColor, setSampleCount, setSamplesPerUnitLength, setStroke, setStrokeCap, setStrokeColor, setStrokeJoin, setStrokeWeight, setStyle, setStyle, setStyle, trace
public Circle(Point center, float radius)
center
- the centerradius
- the radiuspublic Circle(float x, float y, float radius)
x
- the center x-coordinatey
- the center y-coordinateradius
- the radiuspublic Circle(Circle c)
c
- the circle to copypublic void draw(processing.core.PGraphics g)
public void draw(processing.core.PGraphics g, float u1, float u2)
Path
public void trace(Point target, float u)
Path
public void translate(float dx, float dy)
public void setStartAngle(float startAngle)
startAngle
- public void setCenter(float x, float y)
public void setCenter(Point center)
center
- The center poitnpublic void setDiameter(float diam)
diam
- public void setRadius(float radius)
radius
- the radiuspublic float getLength()
Path
public Point getCenter()
public float getCenx()
public float getCeny()
public float getDiameter()
public float getRadius()
public int getGapCount()
Path
getGapCount
in class Path
public float getGap(int i)
Path
public boolean isGap(float u)
Path
public float getStartAngle()
public java.lang.String toString()
toString
in class java.lang.Object