*/
protected short roundAngle() {
if (! (value() instanceof DtAngle)) {
throw new IllegalStateException("Value must be an angle to round.");
}
final DtAngle angle = (DtAngle) value();
final double angleValue = angle.getValue();
if (angleValue < AbstractGlyphOrientation.ANGLE_ROUNDING_0_CUTOFF) {
return 0;
}
if (angleValue < AbstractGlyphOrientation.ANGLE_ROUNDING_90_CUTOFF) {
return AbstractGlyphOrientation.ANGLE_90;