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

From Flowcode Help
Jump to navigationJump to search
(XML import of API documentation)
Line 38: Line 38:
  
 
===Flowcode example file===
 
===Flowcode example file===
Download [[File:SIMAPI_Panel_Position_GetEuler.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, the Euler angles of the cuboid are returned into an existing Float Array variable. The Euler angles are then displayed on the LCD display. Be aware in this example the LCD display is showing integer values. The floats are cast to ints. Euler angles are effectively showing the rotational dimensions of the object.
+
Download [[File:SIMAPI_Panel_Position_GetEuler.fcfx]] 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, the Euler angles of the cuboid are returned into an existing Float Array variable. The Euler angles are then displayed on the LCD display. Be aware in this example the LCD display is showing integer values. The floats are cast to ints. Euler angles are effectively showing the rotational dimensions of the object.
 
The screenshots below show the effect and also highlight the code used by the example.
 
The screenshots below show the effect and also highlight the code used by the example.
  

Revision as of 13:22, 20 September 2013


<sidebar>API Contents</sidebar> Returns the positions euler angles in (P,Y,R) array

Class hierarchy

Panel

Position
GetEuler

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 euler angles in (P,Y,R) 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.GetEuler(handle, target)

Flowcode example file

Download File:SIMAPI Panel Position GetEuler.fcfx 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, the Euler angles of the cuboid are returned into an existing Float Array variable. The Euler angles are then displayed on the LCD display. Be aware in this example the LCD display is showing integer values. The floats are cast to ints. Euler angles are effectively showing the rotational dimensions of the object. The screenshots below show the effect and also highlight the code used by the example.


SIMAPI Panel Position GetEuler Pic0.png