User Tools

Site Tools


en:examples:maths:two_component_vectors

Two-component Vector Literals

Normally, vectors are expressed as 3 component:

 [Object]
 Position = (100, 100, 0)

As Orx is a 2D engine, you can express them as two component:

 [Object]
 Position = (100, 100)

The third component will be 0 by default. This can be done with any vector type.

en/examples/maths/two_component_vectors.txt · Last modified: 2019/06/15 19:24 (5 years ago) by 127.0.0.1