Community
Participate
Working Groups
}
/**
* Returns the difference between this {@link Angle} and another
* {@link Angle} in a counter-clockwise direction
*
* @param other
* the other angle to compare to
* @return the difference between this {@link Angle} and another
*/
public Angle getDeltaCCW(Angle other) {
return new Angle(this.rad - other.rad);
* {@link Angle} in a clockwise direction
public Angle getDeltaCW(Angle other) {
return new Angle(other.rad - this.rad);
* Tests if the other {@link Angle} is within a half-circle clockwise
* rotation from this {@link Angle}
* @return true if the a clockwise rotation to the other angle is less than
* 180deg
public boolean isClockwise(Angle other) {
return getDeltaCW(other).rad <= RAD_180;
* Returns a new {@link Angle} object representing this {@link Angle}
* multiplied by the given factor.