Difference between revisions of "ObjectType:point3f"

From Lavish Software Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
== Description ==
+
== Overview ==
 +
{{ObjectType-Vitals|point3f|[[LavishScript]]|none|Same as X,Y,Z|point3f|no|_Point3f *}}
  
 
== Members ==
 
== Members ==
*[[DataType:floatptr|floatptr]] '''X''': X coordinate
+
*[[ObjectType:floatptr|floatptr]] '''X''': X coordinate
*[[DataType:floatptr|floatptr]] '''Y''': Y coordinate
+
*[[ObjectType:floatptr|floatptr]] '''Y''': Y coordinate
*[[DataType:floatptr|floatptr]] '''Z''': Z coordinate
+
*[[ObjectType:floatptr|floatptr]] '''Z''': Z coordinate
*[[DataType:string|string]] '''XYZ''': concatenated XYZ string, separated by commas
+
*[[ObjectType:string|string]] '''XYZ''': concatenated XYZ string, separated by commas
*[[DataType:string|string]] '''XYZ[#]''': concatenated XYZ string, separated by given field separator character
+
*[[ObjectType:string|string]] '''XYZ[#]''': concatenated XYZ string, separated by given field separator character
  
 
== Methods ==
 
== Methods ==
Line 13: Line 14:
 
* '''Set'''[X,Y,Z]: Sets x,y,z to a given value
 
* '''Set'''[X,Y,Z]: Sets x,y,z to a given value
  
== Returns ==
 
NULL
 
 
== Examples ==
 
== Examples ==
 
===Declare a point3f variable===
 
===Declare a point3f variable===
Line 25: Line 24:
 
===Copy coordinates from one variable to another===
 
===Copy coordinates from one variable to another===
 
*coord2:Set[${coord1.X},${coord1.Y},${coord1.Z}]
 
*coord2:Set[${coord1.X},${coord1.Y},${coord1.Z}]
 
== Operates On ==
 
<tt>_Point3f *</tt>
 
 
<small>See lsmodule.h</small>
 
  
 
== See Also ==
 
== See Also ==
* [[LavishScript:Data Types|Data Types]]
+
{{LavishScript:ObjectType}}
 
 
[[Category:LavishScript]]
 
[[Category:LavishScript Data Types]]
 

Latest revision as of 16:26, 8 July 2018

Overview

Object Type Vitals
point3f
Defined By LavishScript
Inherits none
Reduces To Same as X,Y,Z
Variable Object Type point3f
Uses Sub-Types no
C/C++ Type _Point3f *

Members

  • floatptr X: X coordinate
  • floatptr Y: Y coordinate
  • floatptr Z: Z coordinate
  • string XYZ: concatenated XYZ string, separated by commas
  • string XYZ[#]: concatenated XYZ string, separated by given field separator character

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

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

LavishScript Object Types