Previous Document Next Document
CorelScriptTools.AngleConvert

Function AngleConvert(FromUnit As Long, ToUnit As Long, Value As Double) As Double

Member of CorelScriptTools

The AngleConvert method converts a number from one angle measurement to another.

Parameter
Description
FromUnit
Specifies the unit of measurement from which to convert.
1 = degrees
2 = radians
3 = gradients
4 = Corel PHOTO-PAINT degrees (tenths of a degree)
5 = CorelDRAW degrees (millionths of a degree)
ToUnit
Specifies the unit of measurement to convert to:
1 = degrees
2 = radians
3 = gradients
4 = Corel PHOTO-PAINT degrees (tenths of a degree)
5 = CorelDRAW degrees (millionths of a degree)
Value
A numeric expression, specifies the value to be converted

The following code example converts 90 degrees to radians, where the variable x_rads equals 1.57142857142932:

x_rads = ANGLECONVERT(1, 2, 90) 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.