ParallelGraphics  
Home  »  Developer Zone  »  Products  »  VrmlPad  »  References  »  SFRotation
SFRotation

SFRotation Object

 
X
 
Z
 
Set
 
Y
 
Angle

See also: Using field value objects.
 
X property, read/write, Single.

Gets or sets a X component of the SFRotation or MFRotation field value.

The following example shifts a SFRotation value.

Dim f As Field
Set f = Document.RootNodes.Add("Transform")("rotation")
Dim Tmp As Single
Tmp = f.X
f.X = f.Y
f.Y = f.Z
f.Z = Tmp




 
Y property, read/write, Single.

Gets or sets a Y component of the SFRotation or MFRotation field value.




 
Z property, read/write, Single.

Gets or sets a Z component of the SFRotation or MFRotation field value.




 
Angle property, read/write, Single.

Gets or sets an Angle component of the SFRotation or MFRotation field value.




 
Set method, ( X As Single, Y As Single, Z As Single, A As Single ).

Sets a X, Y, Z and Angle components of the SFRotation or MFRotation field value.

The following example sets a SFRotation value by three different ways.

Dim f As Field
Set f = ...

'First method (slowest, but preserves formatting):
f.X = 0
f.Y = 0
f.Z = 1
f.Angle = 1.5708

'Second method (fast and basically preserves formatting):
f.Set 0, 0, 1, 1.5708

'Third method (fastest, but cancels formatting):
f = Array(0, 0, 1, 1.5708)






Last updated: Wed, 19 Nov 2008
© 2000-2008 ParallelGraphics. All rights reserved.