| SFVec2f |  |  |
SFVec2f Object
See also: Using field value objects.
| |

 |
X property, read/write, Single.
Gets or sets a X component of the SFVec2f or MFVec2f field value.
The following example shifts a SFVec2f vector.
Dim f As Field
Set f = Document.RootNodes.Add("PlaneSensor")("minPosition")
f.X = f.X - 10
f.Y = f.Y - 20
|
|

| |

 |
Y property, read/write, Single.
Gets or sets a Y component of the SFVec2f or MFVec2f field value.
|

| |

 |
Set method, ( X As Single, Y As Single ).
Sets both X and Y components of the SFVec2f or MFVec2f field value.
The following example sets a SFVec2f value by three different ways.
Dim f As Field
Set f = ...
'First method (slowest, but preserves formatting):
f.X = 0.1
f.Y = 0.2
'Second method (fast and basically preserves formatting):
f.Set 0.1, 0.2
'Third method (fastest, but cancels formatting):
f = Array(0.1, 0.2)
|
|

|
|
|