Trafo:
Filter:
MathLib/Classes (extension) | Math | Geometry | Libraries > MathLib > Cartesian &c.

Trafo
ExtensionExtension

A geometrical basis

Description

A geometrical basis.

Part of MathLib, a diverse library of mathematical functions.

Class Methods

.new

Create new Basis from basis Vectors.

Arguments:

basis

Basic vector.

default = [ [1, 0, 0], [0, 1, 0], [0, 0, 1] ]

d

Position-vector.

default = 0

.basicNew

Create new Basis from transformation.

.from3dPoints

Create new Basis from 3d Points.

.inverseFrom3dPoints

Create new Basis from 3d Points.

Instance Methods

.rotMatrix

Return the used rotation matrix

.basis

Return the basis vectors as: [[x1, x2, x3],[y1, y2, y3],[z1, z2, z3]]

.position

Return the translative part.

.inverse

Return a new instance where (t * t.inverse vmul: v) == v;

.vmul

Transform aVec with scaling scale to the trafo-inherited basis.

Authors

Till Bovermann, 2006.