HERE! Have and example, the *poof* be gone!!
`--------------------------------------------------------------------------------
`- Project: Test -
`- Description: A demonstration of using the Vector types. -
`- Written by: Adam Presley a.k.a. The One Ring -
`--------------------------------------------------------------------------------
exampleVectorID = 1
anotherVectorID = 2
resultVectorID = 3
` -- Create the vector --
result = make vector3(exampleVectorID)
result = make vector3(anotherVectorID)
result = make vector3(resultVectorID)
` -- Assign values to it. --
set vector3 exampleVectorID, 2.4, 5.5, 6.7
` -- Read the values --
X# = x vector3(exampleVectorID)
Y# = y vector3(exampleVectorID)
Z# = z vector3(exampleVectorID)
` -- Show the values --
print str$(X#)
print str$(Y#)
print str$(Z#)
print
print "Press any key to add 1.0 to each number. "
suspend for key
` -- Assign values to the second vector --
set vector3 anotherVectorID, 1.0, 1.0, 1.0
` -- Add this vector to the other one. --
add vector3 resultVectorID, exampleVectorID, anotherVectorID
` -- Show the result --
print "X = "; str$(x vector3(resultVectorID))
print "Y = "; str$(y vector3(resultVectorID))
print "Z = "; str$(z vector3(resultVectorID))
print
print "Press any key to end."
suspend for key
end
There's some vector usage. It does nothing useful... I just hope it gets you to shut up...
Good, bad... I'm the guy with the gun. - Ash in Army Of Darkness(1993). http://www.divekahuna.com/images/aod-small.jpg[/img]