Lines Matching full:angle
30 * curve is defined by a start angle and an extent angle (the end angle minus
31 * the start angle) as a pie wedge whose point is in the center of the
93 * The start angle of the arc in degrees.
98 * The width angle of the arc in degrees.
134 * the start angle of the arc in degrees.
136 * the width angle of the arc in degrees.
159 * the start angle of the arc in degrees.
161 * the width angle of the arc in degrees.
272 * The start angle of the arc in degrees.
277 * The width angle of the arc in degrees.
313 * the start angle of the arc in degrees.
315 * the width angle of the arc in degrees.
338 * the start angle of the arc in degrees.
340 * the width angle of the arc in degrees.
448 * The start angle of the arc in degrees.
450 double angle;
453 * The angle extent in degrees.
489 * The temporary value of cosinus of the current angle.
494 * The temporary value of sinus of the current angle.
543 this.angle = -Math.toRadians(a.getAngleStart());
592 cos = Math.cos(angle);
593 sin = Math.sin(angle);
603 angle += step;
604 cos = Math.cos(angle);
605 sin = Math.sin(angle);
637 cos = Math.cos(angle);
638 sin = Math.sin(angle);
648 angle += step;
649 cos = Math.cos(angle);
650 sin = Math.sin(angle);
709 * Gets the start angle.
711 * @return the start angle.
716 * Gets the width angle.
718 * @return the width angle.
723 * Sets the start angle.
726 * the new start angle.
731 * Sets the width angle.
734 * the new width angle.
752 * the start angle of the arc in degrees.
754 * the width angle of the arc in degrees.
850 * the start angle of the arc in degrees.
852 * the angle width of the arc in degrees.
867 * the start angle of the arc in degrees.
869 * the angle width of the arc in degrees.
899 * the start angle of the arc in degrees.
901 * the angle width of the arc in degrees.
953 * Sets a new start angle to be the angle given by the the vector from the
957 * the point that determines the new start angle.
960 double angle = Math.atan2(point.getY() - getCenterY(), point.getX() - getCenterX());
961 setAngleStart(getNormAngle(-Math.toDegrees(angle)));
966 * points (x1, y1) and (x2, y2). The start angle is given by the vector from
967 * the current center to the point (x1, y1) and the end angle is given by
972 * point determines the new start angle of the arc.
975 * point determines the new start angle of the arc.
978 * point determines the new end angle of the arc.
981 * point determines the new end angle of the arc.
998 * points p1 and p2. The start angle is given by the vector from the current
999 * center to the point p1 and the end angle is given by the vector from the
1004 * new start angle of the arc.
1007 * new end angle of the arc.
1014 * Normalizes the angle by removing extra winding (past 360 degrees) and
1017 * @param angle
1018 * the source angle in degrees.
1019 * @return an angle between 0 and 360 degrees which corresponds to the same
1020 * direction vector as the source angle.
1022 double getNormAngle(double angle) {
1023 double n = Math.floor(angle / 360.0);
1024 return angle - n * 360.0;
1028 * Determines whether the given angle is contained in the span of the arc.
1030 * @param angle
1031 * the angle to test in degrees.
1032 * @return true, if the given angle is between the start angle and the end
1033 * angle of the arc.
1035 public boolean containsAngle(double angle) {
1040 angle = getNormAngle(angle);
1044 return angle >= a1 || angle <= a2 - 360.0;
1047 return angle >= a2 + 360.0 || angle <= a1;
1049 return extent > 0.0 ? a1 <= angle && angle <= a2 : a2 <= angle && angle <= a1;