Lines Matching defs:angle

33  * start angle, angular extent (length of the arc), and a closure type
121 * The starting angle of the arc in degrees.
168 * @param start The starting angle of the arc in degrees.
192 * @param start The starting angle of the arc in degrees.
414 * The starting angle of the arc in degrees.
461 * @param start The starting angle of the arc in degrees.
485 * @param start The starting angle of the arc in degrees.
706 * Returns the starting angle of the arc.
708 * @return A double value that represents the starting angle
740 * starting angle and the elliptical boundary of the arc.
747 double angle = Math.toRadians(-getAngleStart());
748 double x = getX() + (Math.cos(angle) * 0.5 + 0.5) * getWidth();
749 double y = getY() + (Math.sin(angle) * 0.5 + 0.5) * getHeight();
756 * starting angle plus the angular extent of the arc and the
764 double angle = Math.toRadians(-getAngleStart() - getAngleExtent());
765 double x = getX() + (Math.cos(angle) * 0.5 + 0.5) * getWidth();
766 double y = getY() + (Math.sin(angle) * 0.5 + 0.5) * getHeight();
780 * @param angSt The starting angle of the arc in degrees.
798 * @param angSt The starting angle of the arc in degrees.
817 * @param angSt The starting angle of the arc in degrees.
848 * @param angSt The starting angle of the arc in degrees.
862 * specified value. The starting angle of the arc is tangent to the
863 * line specified by points (p1, p2), the ending angle is tangent to
868 * angle of the arc is tangent to the line specified by points (p1, p2).
870 * angle of the arc is tangent to the line specified by points (p1, p2).
871 * The ending angle of the arc is tangent to the line specified by
873 * @param p3 The third point that defines the arc. The ending angle
915 * Sets the starting angle of this arc to the specified double
918 * @param angSt The starting angle of the arc in degrees.
935 * Sets the starting angle of this arc to the angle that the
939 * @param p The <CODE>Point2D</CODE> that defines the starting angle.
951 * Sets the starting angle and angular extent of this arc using two
953 * determine the angle of the starting point relative to the arc's
955 * angle of the end point relative to the arc's center.
970 // Note: reversing the Y equations negates the angle to adjust
984 * Sets the starting angle and angular extent of this arc using
985 * two points. The first point is used to determine the angle of
987 * The second point is used to determine the angle of the end point
1061 double angle = 0.0;
1065 angle += 90.0;
1066 if (!containsAngle(angle)) {
1070 // 4 is start angle
1071 angle = getAngleStart();
1073 // 5 is end angle
1074 angle += getAngleExtent();
1076 double rads = Math.toRadians(-angle);
1112 * Normalizes the specified angle into the range -180 to 180.
1114 static double normalizeDegrees(double angle) {
1115 if (angle > 180.0) {
1116 if (angle <= (180.0 + 360.0)) {
1117 angle = angle - 360.0;
1119 angle = Math.IEEEremainder(angle, 360.0);
1121 if (angle == -180.0) {
1122 angle = 180.0;
1125 } else if (angle <= -180.0) {
1126 if (angle > (-180.0 - 360.0)) {
1127 angle = angle + 360.0;
1129 angle = Math.IEEEremainder(angle, 360.0);
1131 if (angle == -180.0) {
1132 angle = 180.0;
1136 return angle;
1140 * Determines whether or not the specified angle is within the
1143 * @param angle The angle to test.
1145 * @return <CODE>true</CODE> if the arc contains the angle,
1146 * <CODE>false</CODE> if the arc doesn't contain the angle.
1149 public boolean containsAngle(double angle) {
1158 angle = normalizeDegrees(angle) - normalizeDegrees(getAngleStart());
1160 angle = -angle;
1162 if (angle < 0.0) {
1163 angle += 360.0;
1167 return (angle >= 0.0) && (angle < angExt);
1222 double angle = Math.toRadians(-getAngleStart());
1223 double x1 = Math.cos(angle);
1224 double y1 = Math.sin(angle);
1225 angle += Math.toRadians(-getAngleExtent());
1226 double x2 = Math.cos(angle);
1227 double y2 = Math.sin(angle);
1388 // either of the pie angle segments.
1396 double angle = Math.toRadians(-getAngleStart());
1397 double xe = xc + halfW * Math.cos(angle);
1398 double ye = yc + halfH * Math.sin(angle);
1402 angle += Math.toRadians(-getAngleExtent());
1403 xe = xc + halfW * Math.cos(angle);
1404 ye = yc + halfH * Math.sin(angle);