ObjectType:point3f
Jump to navigation
Jump to search
Contents
Overview
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
- Text
- string - mutablestring - unistring
- Numbers
- byte - float - float64 - int - uint - int64
- Boolean (TRUE/FALSE)
- bool
- Pointers
- boolptr - byteptr - floatptr - float64ptr - intptr - uintptr - int64ptr - rgbptr - stringptr
- Containers
- objectcontainer - array - index - collection - queue - stack - set - variablescope
- JSON
- jsonobject - jsonarray - jsonvaluecontainer - jsonvalue
- Iteration
- iterator - jsoniterator
- Date/Time
- time
- File Handling
- filepath - file - filelist - filelistentry
- Tasks
- lavishmachine - Accessed via the Top-Level Object LMAC
- task - tasklibrary - taskmanager - tasktype - taskpulseargs - elmactaskstate