Modifier and Type | Field and Description |
---|---|
protected double |
value |
Modifier | Constructor and Description |
---|---|
protected |
BasicFunc(double value) |
Modifier and Type | Method and Description |
---|---|
T |
add(T value)
Calculates the sum of this and the given value.
|
protected abstract T |
create(double value) |
T |
divide(double value)
Divides this object with the given value and returns with a new object
representing the new value.
|
boolean |
equals(Object obj) |
int |
hashCode() |
T |
inverse()
Creates the inverse of this object.
|
boolean |
isZero()
Checks if this object represents the zero angle.
|
T |
max(T b)
Returns with the bigger object of this object and the given object.
|
T |
min(T b)
Returns with the smaller object of this object and the given object.
|
T |
mul(double value)
Multiplies this object with the given value and returns with a new angle
representing the new value.
|
T |
substract(T value)
Calculates the difference of this and the given value.
|
protected abstract T |
thisOne() |
protected abstract T create(double value)
protected abstract T thisOne()
public boolean isZero()
public T mul(double value)
value
- the value to be usedpublic T divide(double value)
value
- the value to be usedpublic T substract(T value)
value
- the other angle to be usedpublic T add(T value)
value
- the other angle to be usedpublic T inverse()
public T max(T b)
b
- second object to comparepublic T min(T b)
b
- second object to compareCopyright © 2014–2020, Printing in 3D. All rights reserved.