# Physics - Kinematics - Translation

Translations or relative positions can also be represented by vectors of dimension 3. In this case the vector represents the new position relative to the old position. These translations can be concatenated (applied one after another), this can be represented mathematically by adding the vectors. So if a translation [ax, ay, az] is applied and then another translation [bx, by, bz] the resulting translation will be [ax+bx, ay+by, az+bz]. The usual rules of vector addition apply, so:

[A] + [B] = [B] + [A]

in 3 dimensions:

 ax ay az
+
 bx by bz
=
 bx by bz
+
 ax ay az
=
 ax+bx ay+by az+bz

A complex object can be translated by applying the translation to each point on the object.

Since there are 3 dimensions this gives 3 degrees of freedom.

These translations can be used to describe the linear movement of an object.

## Representing Translation in program

Translation in 3D space can be held in a 3D vector (see class sfvec3f). For an example of how this might be used in a scenegraph node, see here.

Book Shop - Further reading.

Where I can, I have put links to Amazon for books that are relevant to the subject, click on the appropriate country flag to get more details of the book or to buy it from them.

Engineering Mechanics - Includes Statics book and dynamics book below..

Engineering Mechanics Vol 2: Dynamics - Gives theory for rigid dynamics, aims to allow prediction of effects of force and motion. Includes rotating frame of reference. Lots of colour diagrams, I guess its college / University level.

Commercial Software Shop

Where I can, I have put links to Amazon for commercial software, not directly related to the software project, but related to the subject being discussed, click on the appropriate country flag to get more details of the software or to buy it from them.

 Dark Basic Professional Edition - It is better to get this professional edition This is a version of basic designed for building games, for example to rotate a cube you might do the following: make object cube 1,100 for x=1 to 360 rotate object 1,x,x,0 next x Game Programming with Darkbasic - book for above software

This site may have errors. Don't use for critical systems.