Parses the string into an angle in radians. The value string is assumed to be in degrees. If the keyword 'grad' follows the value, the value string is converted from gradians. If the keyword 'rad' follows the value, the value string is converted from radians.
Namespace: RSSVGUtils
Delphi |
function ParseAngle( S: String; DefValue: Single; var Automatic: Boolean ): Single; |
Parameters
S
Type: String
Input string to parse
DefValue
Type: Single
Default Value. If the string is empty, the default value is returned
Automatic
Type: Boolean
Set to true if the S parameter contains the 'auto' keyword
Type: Single
If the string is empty, the default value (DefValue) is returned. |
|
Reference |