ParallelGraphics
Home  »  Developer Zone  »  Products  »  VrmlPad  »  References  »  SFVec2f
Up to References

Document 

Documents 

Entity 

Field 

Fields 

MFValue 

Node 

Nodes 

Proto 

Protos 

Range 

Route 

Routes 

SFColor 

SFRotation 

SFVec2f 

SFVec3f 

VrmlMatrix 

Window 


Subscribe to Newsletter
 


Google Searchsite search:

 

%(domain)s %(domain)s
Install Cortona VRML Client!

Outline 3D

Try RobinZone!


SFVec2f

SFVec2f Object

 
X
 
Y
 
Set

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)





Last updated: Thu, 04 Sep 2008
© 2000-2008 ParallelGraphics. All rights reserved. Terms of use.