Difference between revisions of "API Panel.Position.GetQuat"

From Flowcode Help
Jump to navigationJump to search
(XML import API changes)
Line 35: Line 35:
 
* Add to a calculation icon: <pre class="brush:[cpp]">result = ::Panel.Position.GetQuat(handle, target)</pre>
 
* Add to a calculation icon: <pre class="brush:[cpp]">result = ::Panel.Position.GetQuat(handle, target)</pre>
  
''<span style="color:red;">No additional information</span>''
+
===Flowcode example file===
 +
Download [[File:SIMAPI_Panel_Position_GetQuat.fcf]] and open it in Flowcode v6. In this example a blue cuboid and a LCD are shown on the system panel. When the program starts, a Quaternion of the cuboid is returned into an existing Float Array variable. The Quaternion values are then displayed on the LCD display.
 +
 
 +
The screenshots below show the effect and also highlight the code used by the example.
 +
 
 +
 
 +
 
 +
[[File:SIMAPI_Panel_Position_GetQuat_Pic0.png]]

Revision as of 21:05, 19 May 2013

<sidebar>API contents</sidebar> Returns the positions quaternion in {X,Y,Z,W} array

Class hierarchy

Panel

Position
GetQuat

Parameters

HANDLE Handle

The position or component to read
The default value for this parameter is: this

HANDLE Target

The position or component to convert relative to
The default value for this parameter is: this


Return value

FLOAT[]

Returns the positions quaternion in {X,Y,Z,W} array


Detailed description

No additional information


Examples

Calling in a calculation

  • Declare a variable 'result' of type FLOAT[]
  • Add to a calculation icon:
    result = ::Panel.Position.GetQuat(handle, target)

Flowcode example file

Download File:SIMAPI Panel Position GetQuat.fcf and open it in Flowcode v6. In this example a blue cuboid and a LCD are shown on the system panel. When the program starts, a Quaternion of the cuboid is returned into an existing Float Array variable. The Quaternion values are then displayed on the LCD display.

The screenshots below show the effect and also highlight the code used by the example.


SIMAPI Panel Position GetQuat Pic0.png