Difference between revisions of "ObjectType:point3f"

From Lavish Software Wiki
Jump to navigation Jump to search
Line 7: Line 7:
  
 
== Methods ==
 
== Methods ==
 +
* '''Set'''[X]: Sets x to a given value
 +
* '''Set'''[X,Y]: Sets x,y to a given value
 +
* '''Set'''[X,Y,Z]: Sets x,y,z to a given value
  
 
== Returns ==
 
== Returns ==
 
+
NULL
 
== Examples ==
 
== Examples ==
 +
===Declare a point3f variable===
 +
*declare coord1 point3f 
 +
:'''Note:''' You cannot set X,Y,Z at declaration
 +
===Set all 3 values in a point3f variable===
 +
*coord1:Set[3982.32,3924.12,4999.91]
 +
===Set just X value===
 +
*coord1:Set[5892.33]
 +
===Copy coordinates from one variable to another===
 +
*coord2:Set[${coord1.X},${coord1.Y},${coord1.Z}]
  
 
== See Also ==
 
== See Also ==

Revision as of 20:57, 26 August 2005

Description

Members

Methods

  • Set[X]: Sets x to a given value
  • Set[X,Y]: Sets x,y to a given value
  • Set[X,Y,Z]: Sets x,y,z to a given value

Returns

NULL

Examples

Declare a point3f variable

  • declare coord1 point3f
Note: You cannot set X,Y,Z at declaration

Set all 3 values in a point3f variable

  • coord1:Set[3982.32,3924.12,4999.91]

Set just X value

  • coord1:Set[5892.33]

Copy coordinates from one variable to another

  • coord2:Set[${coord1.X},${coord1.Y},${coord1.Z}]

See Also