|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.magnitude.core.Math
public final class Math
Mathematical operations with Magnitude
objects.
Field Summary | |
---|---|
static Magnitude |
PI
Pi. |
Method Summary | |
---|---|
static Magnitude |
abs(Magnitude m)
Returns the absolute value of this Magnitude . |
static Magnitude |
acos(Magnitude m)
Returns the arc cosine of a value. |
static Magnitude |
asin(Magnitude m)
Returns the arc sine of a value. |
static Magnitude |
atan(Magnitude m)
Returns the arc tangent of a value. |
static Magnitude |
atan2(Magnitude y,
Magnitude x)
Returns the arc tangent of a value. |
static Magnitude |
cbrt(Magnitude m)
Returns the cubic root of a value. |
static Magnitude |
ceil(Magnitude m)
Returns the smallest (closest to negative infinity) value of this Magnitude . |
static Magnitude |
cos(Magnitude m)
Returns the trigonometric cosine of an angle. |
static Magnitude |
floor(Magnitude m)
Returns the largest (closest to positive infinity) value of this Magnitude . |
static Magnitude |
max(Magnitude... ms)
Returns the maximum Magnitude from a list of
Magnitude 's. |
static Magnitude |
min(Magnitude... ms)
Returns the minimum Magnitude from a list of
Magnitude 's. |
static Magnitude |
sin(Magnitude m)
Returns the trigonometric sine of an angle. |
static Magnitude |
sqrt(Magnitude m)
Returns the square root of a value. |
static Magnitude |
tan(Magnitude m)
Returns the trigonometric tangent of an angle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Magnitude PI
Method Detail |
---|
@CheckReturnValue public static Magnitude abs(Magnitude m)
Magnitude
.
m
- a magnitude
Magnitude
Math.abs(double)
@CheckReturnValue public static Magnitude acos(Magnitude m)
m
- a magnitude
Magnitude
with the arc cosine of the specified
Magnitude
java.lang.IllegalArgumentException
- if the magnitude is not dimensionlessMath.atan(double)
@CheckReturnValue public static Magnitude asin(Magnitude m)
m
- a magnitude
Magnitude
with the arc sine of the specified
Magnitude
java.lang.IllegalArgumentException
- if the magnitude is not dimensionlessMath.atan(double)
@CheckReturnValue public static Magnitude atan(Magnitude m)
m
- a magnitude
Magnitude
with the arc tangent of the
specified Magnitude
java.lang.IllegalArgumentException
- if the magnitude is not dimensionlessMath.atan(double)
@CheckReturnValue public static Magnitude atan2(Magnitude y, Magnitude x)
y
- the ordinate coordinatex
- the abscissa coordinate
Magnitude
with the arc tangent of the
specified Magnitude
java.lang.IllegalArgumentException
- if the ordinate and abscissa do not have the same unitsMath.atan2(double, double)
@CheckReturnValue public static Magnitude ceil(Magnitude m)
Magnitude
.
m
- magnitude
Math.ceil(double)
@CheckReturnValue public static Magnitude cos(Magnitude m)
m
- a magnitude
Magnitude
with the cosine of the specified
Magnitude
java.lang.IllegalArgumentException
- if the units of the magnitude cannot be expressed as radiansMath.cos(double)
@CheckReturnValue public static Magnitude cbrt(Magnitude m)
m
- a magnitude
Magnitude
Math.cbrt(double)
@CheckReturnValue public static Magnitude floor(Magnitude m)
Magnitude
.
m
- a magnitude
@CheckReturnValue public static Magnitude max(Magnitude... ms)
Magnitude
from a list of
Magnitude
's.
ms
- list of Magnitude
's
Magnitude
with the maximal value@CheckReturnValue public static Magnitude min(Magnitude... ms)
Magnitude
from a list of
Magnitude
's.
ms
- list of Magnitude
's
Magnitude
with the minimal value@CheckReturnValue public static Magnitude sin(Magnitude m)
m
- a magnitude
Magnitude
with the sine of the specified
Magnitude
java.lang.IllegalArgumentException
- if the units of the magnitude cannot be expressed as radiansMath.sin(double)
@CheckReturnValue public static Magnitude sqrt(Magnitude m)
m
- a magnitude
Magnitude
Math.sqrt(double)
@CheckReturnValue public static Magnitude tan(Magnitude m)
m
- a magnitude
Magnitude
with the tangent of the specified
Magnitude
java.lang.IllegalArgumentException
- if the units of the magnitude cannot be expressed as radiansMath.tan(double)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |