tennsS v1.53 Reference Manual

Copyright (C) 1997 - 2002 Mike Arnold, Altjira Software, mikea@altjira.com

Go to the previous, next section, table of contents.


Vec2d

Class Vec2d derived from Owned (size <64> bytes)

Returns a 2-dimensional vector. The length and sign of the vector is found by first calling the default operator for the object referenced by <magnitude>. The return value is then shifted by minus <base>, and finally normalised to be between +/- <factor>. The direction of the vector is defined by <preferred>. The magnitude object is referenced and must be of type Particle. If <asymmetry> is true then the original vector is constrained to be non-negative.


Naming

magnitude references the magnitude object

Configuration

magnitude=<ref> reference to the magnitude asymmetry=<bool> asymmetry (0) base=<data> base (60) factor=<data> factor (1) preferred=<uint> preferred direction in degrees (0)

Derived Classes


Go to the previous, next section, table of contents. Document generated Mon Jun 16 02:19:05 GMT 2003