org.extex.interpreter.primitives.register.real
Class MathToDegrees
java.lang.Object
org.extex.interpreter.type.AbstractCode
org.extex.interpreter.primitives.register.real.AbstractMath
org.extex.interpreter.primitives.register.real.MathToDegrees
- All Implemented Interfaces:
- java.io.Serializable, CountConvertible, RealConvertible, Code, Theable
public class MathToDegrees
- extends AbstractMath
- implements Theable, RealConvertible, CountConvertible
Math. Converts an angle measured in radians to an approximately equivalent
angle measured in degrees.
Example
\the\mathtodegrees 0.234
\real7=\mathtodegrees 0.56
\real8=\mathtodegrees\real7
\count99=\mathtodegrees 1.34
- Version:
- $Revision: 6447 $
- Author:
- Michael Niedermair
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.extex.interpreter.type.Theable |
the |
MathToDegrees
public MathToDegrees(CodeToken token)
- Creates a new object.
- Parameters:
token - the initial token for the primitive
calculate
protected Real calculate(Context context,
TokenSource source,
Typesetter typesetter)
throws ConfigurationException,
HelpingException,
TypesetterException
- Calculate
- Specified by:
calculate in class AbstractMath
- Parameters:
context - the contextsource - the token sourcetypesetter - the typesetter
- Returns:
- the real value
- Throws:
ConfigurationException - in case of an configuration error
HelpingException - in case of an error
TypesetterException - in case of an error in the typesetter- See Also:
AbstractMath.calculate(
org.extex.interpreter.context.Context,
org.extex.interpreter.TokenSource, org.extex.typesetter.Typesetter)