[VB] | Public Sub setVector(lengths As Double(), directions As Double() [, lengthScale As Integer ]) |
[C#] | public void setVector(double[] lengths, double[] directions [, int lengthScale ]); |
ChartDirector 5.1 (.NET Edition)
VectorLayer.setVector
Usage
[VB] | Public Sub setVector(lengths As Double(), directions As Double() [, lengthScale As Integer ]) |
[C#] | public void setVector(double[] lengths, double[] directions [, int lengthScale ]); |
Description
Constant | Value | Description |
---|---|---|
PixelScale | 0 | The lengths are measured in pixels. The angles are measured clockwise in degrees, with the upwards position as 0. |
XAxisScale | 1 | The lengths are measured in x-axis scale. The angles are measured clockwise in degrees, with the upwards position as 0. |
YAxisScale | 2 | The lengths are measured in y-axis scale. The angles are measured clockwise in degrees, with the upwards position as 0. |
EndPoints | 3 | The vector lengths and directions are measured as the lengths and directions between the reference points and the reference end points. |
Arguments
Argument | Default | Description |
---|---|---|
lengths | (Mandatory) | An array of numbers representing either the lengths of the vectors or the x coordinates of the reference end points, depending on lengthScale. |
directions | (Mandatory) | An array of numbers representing either the directions of the vectors or the y coordinates of the reference end points, depending on lengthScale. |
lengthScale | PixelScale | The method to specify vector lengths and directions, which must be one of the predefined constants in the table above. |
Return Value