A utility class that helps with formatting angles.
More...
#include <iangleformatter.h>
List of all members.
Public Member Functions |
virtual AtLastUstring | Format (double angle) const =0 |
| Formats the given value into the current angle format.
|
virtual bool | Parse (LPCWSTR strValue, double *pVal) const =0 |
| Parses the given string representation of an angle, putting the result in the given double value.
|
Detailed Description
A utility class that helps with formatting angles.
Member Function Documentation
virtual AtLastUstring atlast::sketchup::ISketchUpAngleFormatter::Format |
( |
double |
angle |
) |
const [pure virtual] |
Formats the given value into the current angle format.
- Parameters:
-
| angle | The angle in radians normalized between 0 and +/- 2PI. |
- Returns:
- The formatted angle.
virtual bool atlast::sketchup::ISketchUpAngleFormatter::Parse |
( |
LPCWSTR |
strValue, |
|
|
double * |
pVal | |
|
) |
| | const [pure virtual] |
Parses the given string representation of an angle, putting the result in the given double value.
This method will attempt to parse the given string which should represent an angle. The result goes in the given double value if not NULL.
- Parameters:
-
| strValue | The string representation to be parsed. |
| pVal | The optional parameter that will be populated with the parsed value if not NULL and if the strValue parameter is valid. |
- Returns:
- true iff the value could be parsed as an angle.