Class TrigonometricTickRenderer
java.lang.Object
org.jzy3d.plot3d.primitives.axis.layout.renderers.TrigonometricTickRenderer
- All Implemented Interfaces:
ITickRenderer
Render ticks as multiple of π if the input value to be formated is not further to a multiple of π
than delta.
- Author:
- Martin Pernollet
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTrigonometricTickRenderer
(double delta) Allow overriding the authorized delta to a known trigonometric angle in radian.TrigonometricTickRenderer
(double delta, int maxDenominator) TrigonometricTickRenderer
(int maxDenominator) Allow overriding the max authorized π denominator. -
Method Summary
-
Field Details
-
maxDenominator
protected int maxDenominator -
delta
protected double delta
-
-
Constructor Details
-
TrigonometricTickRenderer
public TrigonometricTickRenderer() -
TrigonometricTickRenderer
public TrigonometricTickRenderer(double delta) Allow overriding the authorized delta to a known trigonometric angle in radian. -
TrigonometricTickRenderer
public TrigonometricTickRenderer(int maxDenominator) Allow overriding the max authorized π denominator. Growing this value leads to slower π fraction estimation. Decreasing this value leads to less fraction being supported -
TrigonometricTickRenderer
public TrigonometricTickRenderer(double delta, int maxDenominator)
-
-
Method Details
-
autoDelta
protected void autoDelta(int maxDenominator) -
format
- Specified by:
format
in interfaceITickRenderer
-
eq
protected boolean eq(double value, double ref, double delta) -
eq
protected boolean eq(double value, double ref) -
getDelta
public double getDelta() -
setDelta
public void setDelta(double delta)
-