Package org.midheaven.math
Class Angle
java.lang.Object
org.midheaven.math.Angle
- All Implemented Interfaces:
Comparable<Angle>,Ordered<Angle>,AdditionGroup<Angle>,AdditionMonoid<Angle>
Represents Angle.
-
Method Summary
Modifier and TypeMethodDescriptionabs()Performs abs.intPerforms compareTo.booleanPerforms equals.inthashCode()Checks whether hash Code.booleanisZero()Checks whether is Zero.Performs minus.negate()Performs negate.static AngleofDegrees(long degrees) Returns of Degrees.static AngleReturns of Degrees.static AngleReturns of Radians.over(long factor) Performs over.Performs over.Performs plus.Performs ratio.times(long factor) Performs times.Performs times.toString()Returns to String.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.midheaven.lang.Ordered
isEqualTo, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo
-
Method Details
-
ofRadians
Returns of Radians.- Parameters:
radians- the radians value- Returns:
- the result of ofRadians
-
ofDegrees
Returns of Degrees.- Parameters:
degrees- the degrees value- Returns:
- the result of ofDegrees
-
ofDegrees
Returns of Degrees.- Parameters:
degrees- the degrees value- Returns:
- the result of ofDegrees
-
negate
Performs negate.- Specified by:
negatein interfaceAdditionGroup<Angle>- Returns:
- the result of negate
-
minus
Performs minus.- Specified by:
minusin interfaceAdditionGroup<Angle>- Parameters:
other- the other value- Returns:
- the result of minus
-
plus
Performs plus.- Specified by:
plusin interfaceAdditionMonoid<Angle>- Parameters:
other- the other value- Returns:
- the result of plus
-
abs
Performs abs.- Specified by:
absin interfaceAdditionGroup<Angle>- Returns:
- the result of abs
-
isZero
public boolean isZero()Checks whether is Zero.- Specified by:
isZeroin interfaceAdditionMonoid<Angle>- Returns:
- the result of isZero
-
compareTo
Performs compareTo.- Specified by:
compareToin interfaceComparable<Angle>- Parameters:
other- the other value- Returns:
- the result of compareTo
-
times
Performs times.- Parameters:
factor- the factor value- Returns:
- the result of times
-
over
Performs over.- Parameters:
factor- the factor value- Returns:
- the result of over
-
times
Performs times.- Parameters:
factor- the factor value- Returns:
- the result of times
-
over
Performs over.- Parameters:
factor- the factor value- Returns:
- the result of over
-
ratio
Performs ratio.- Parameters:
other- the other value- Returns:
- the result of ratio
-
equals
Performs equals. -
hashCode
public int hashCode()Checks whether hash Code. -
toString
Returns to String.
-