This is the superclass for trigonometric funtions and their inverses. More...

Public Member Functions | |
| Trig (AngleType angleType) | |
| Trig functions are unusual because they require an AngleType. | |
| void | setScale (AngleType angleType) |
| This function tells us whether we are to work in degrees or radians. | |
| final AngleType | getAngleType () |
| Find AngleType. | |
Protected Attributes | |
| double | scale |
| Used internally to convert to radians before calculating result. | |
| double | iscale |
| Used internally to convert from radians after calculating result. | |
| AngleType | angleType |
| Use internally to record angle type. | |
This is the superclass for trigonometric funtions and their inverses.
| jscicalc.pobject.Trig.Trig | ( | AngleType | angleType | ) |
Trig functions are unusual because they require an AngleType.
We set the default here.
| angleType | AngleType.DEGREES (or possibly AngleType.RADIANS) |
References jscicalc.pobject.Trig.setScale().
| final AngleType jscicalc.pobject.Trig.getAngleType | ( | ) |
| void jscicalc.pobject.Trig.setScale | ( | AngleType | angleType | ) |
This function tells us whether we are to work in degrees or radians.
| angleType | AngleType.DEGREES or AngleType.RADIANS |
References jscicalc.pobject.Trig.iscale, and jscicalc.pobject.Trig.scale.
Referenced by jscicalc.pobject.Trig.Trig().
AngleType jscicalc.pobject.Trig.angleType [protected] |
Use internally to record angle type.
Referenced by jscicalc.pobject.Tan.function(), jscicalc.pobject.Sin.function(), jscicalc.pobject.Cos.function(), jscicalc.pobject.ATan.function(), jscicalc.pobject.ASin.function(), jscicalc.pobject.ACos.function(), and jscicalc.pobject.Trig.getAngleType().
double jscicalc.pobject.Trig.iscale [protected] |
Used internally to convert from radians after calculating result.
Referenced by jscicalc.pobject.ATan.function(), jscicalc.pobject.ASin.function(), jscicalc.pobject.ACos.function(), and jscicalc.pobject.Trig.setScale().
double jscicalc.pobject.Trig.scale [protected] |
Used internally to convert to radians before calculating result.
Referenced by jscicalc.pobject.Tan.function(), jscicalc.pobject.Sin.function(), jscicalc.pobject.Cos.function(), jscicalc.pobject.ATan.function(), jscicalc.pobject.ASin.function(), jscicalc.pobject.ACos.function(), and jscicalc.pobject.Trig.setScale().
1.7.1