Previous Document Next Document

Object Model Reference : Classes : C : CorelScriptTools : Methods : CorelScriptTools.AngleConvert


CorelScriptTools.AngleConvert

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

Description

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

Example

The following VBA 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 2013 Corel Corporation. All rights reserved.