User Tools

Site Tools


en:examples:maths:two_component_vectors

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:examples:maths:two_component_vectors [2019/06/15 23:24 (2 months ago)] (current)
sausage created
Line 1: Line 1:
 +====== 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 23:24 (2 months ago) by sausage