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

 |
X property, read/write, Single.
Gets or sets a X component of the SFVec3f or MFVec3f field value.
The following example shifts a SFVec3f vector.
Dim f As Field
Set f = Document.RootNodes.Add("Transform")("translation")
f.X = f.X + 10
f.Y = f.Y + 20
f.Z = f.Z - 30
|
|

| |

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

| |

 |
Z property, read/write, Single.
Gets or sets a Z component of the SFVec3f or MFVec3f field value.
|

| |

 |
Set method, ( X As Single, Y As Single, Z As Single ).
Sets a X, Y and Z components of the SFVec3f or MFVec3f field value.
The following example sets a SFVec3f 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
f.Z = 0.3
'Second method (fast and basically preserves formatting):
f.Set 0.1, 0.2, 0.3
'Third method (fastest, but cancels formatting):
f = Array(0.1, 0.2, 0.3)
|
|

|
|
|