org.gvsig.fmap.geom.primitive

Interface Arc

• Method Detail

• setPoints

void setPoints(Point startPoint,
Point midPoint,
Point endPoint)
Sets the three points to define an arc. These are three ordered points that belong to the arc (none of them is the center of the ellipse/circle). Therefore they must not be aligned.
Parameters:
startPoint - The start point of an arc.
midPoint - The middle point of an arc.
endPoint - The end point of an arc.
Throws:
IllegalArgumentException - if the three points are aligned or there is a repeated point.
• setPoints

void setPoints(Point center,
double startAngle,
double angleExt)
Sets the values to define an arc.
Parameters:
center - The center of the arc.
startAngle - The start angle of the arc (in radians)
angleExt - The angular extent of the arc (in radians). The sign convention is: startAngle = 0 is "3 o'clock"; startAngle = (PI / 3) is "1 o'clock"; angleExt > 0 means "advancing clockwise"; angleExt < 0 means "advancing counterclockwise".
• setPointsStartExt

void setPointsStartExt(Point center,
double startAngle,
double angleExt)
Sets the values to define an arc.
Parameters:
center - The center of the arc.
startAngle - The start angle of the arc (in radians)
angleExt - The angular extent of the arc (in radians). The sign convention is: startAngle = 0 is "3 o'clock"; startAngle = (PI / 3) is "1 o'clock"; angleExt > 0 means "advancing clockwise"; angleExt < 0 means "advancing counterclockwise".
• setPointsStartEnd

void setPointsStartEnd(Point center,
double startAngle,
double endAngle)
Sets the values to define an arc. The arc will go from startAngle to endAngle clockwise. Angles will be normalized to ]-PI, PI] (-PI excluded) before creating the arc.
Parameters:
center - The center of the arc.
startAngle - The start angle of the arc (in radians)
endAngle - The end angle of the arc (in radians).
• getInitPoint

Point getInitPoint()
Return the first point that has been used to create the arc.
Returns:
The first point of the arc.
• getEndPoint

Point getEndPoint()
Return the end point that has been used to create the arc.
Returns:
The end point of the arc.
• getCenterPoint

Point getCenterPoint()
Return the center of the arc, that is, the center of the ellipse/circle in which the arc is based.
Returns:
The center of the arc.
• getMiddlePoint

Point getMiddlePoint()
Return the middle point of the arc.
Returns:
The middle point of the arc.