Difference between revisions of "Vec2f"

From King Arthur's Gold Wiki
Jump to: navigation, search
Line 1: Line 1:
 
<onlyinclude>
 
<onlyinclude>
The Vec2f type is mainly used in the blob for positioning and getting the mouse coordinates.  
+
The Vec2f type is mainly used in the blob for positioning and getting the mouse coordinates.
 +
</onlyinclude>
  
 
Vec2f contains two variables '''x''' and '''y'''.
 
Vec2f contains two variables '''x''' and '''y'''.

Revision as of 23:41, 28 September 2012

The Vec2f type is mainly used in the blob for positioning and getting the mouse coordinates.


Vec2f contains two variables x and y.

Vec2f pos ( f32, f32 )

Example

Vec2f pos;
pos = this.getPosition();
pos+50;
this.SetPosition(pos);