Jump to content

API Panel.Get2dCompFromVector

From Flowcode Help
Revision as of 14:37, 7 August 2026 by Wiki bot (talk | contribs) (Created page with "{| class="mtx-class-macrotable wikitable" |- | width="10%" align="center" class="mtx-class-macrohead" | File:Fc9-comp-macro.png | width="90%" class="mtx-class-macrohead" | '''Get2dCompFromVector''' |- | colspan="2" | Searches for the first component in a particular direction, returning the component and setting the distance to it  |- |- | width="10%" align="center" | File:Fc9-h32-icon.png - HANDLE | width="90%" | Origin |- | colspan="2" | The sear...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Get2dCompFromVector
Searches for the first component in a particular direction, returning the component and setting the distance to it 
- HANDLE Origin
The search starts from the centrepoint of this component 
- FLOAT X
The x component of the vector direction to search 
- FLOAT Y
The y component of the vector direction to search 
- BOOL UsePixels
If true, 'Distance' and 'MaxDistance' represent a pixel size; If false, they are number of vector iterations 
- FLOAT MaxDistance
The maximum distance (or vector iterations) to search 
- FLOAT Distance
The returned distance (or vector iterations) to the hit component 
- HANDLE Return


Detailed description

Examples