se_core::BrayT Class Reference

#include <BrayT.hpp>

List of all members.

Static Public Member Functions

bool isLeftwise (bray_t bray)
bool isRightwise (bray_t bray)
bray_t mask (bray_t bray)
bray_t add (bray_t b1, bray_t b2)
bray_t sub (bray_t b1, bray_t b2)
bray_t diff (bray_t b1, bray_t b2)
bray_t towards (bray_t from, bray_t to, bray_t d)
float toRad (bray_t bray)
bray_t fromRad (float rad)
float toDeg (bray_t bray)
float toBray (bray_t bray)
bray_t fromDeg (float deg)
short to4 (bray_t bray)
short to8 (bray_t bray)
short to16 (bray_t bray)
short toPlatform (bray_t bray)
short toClockwise4 (bray_t bray)
short toClockwise8 (bray_t bray)
short toClockwise16 (bray_t bray)
short toClockwisePlatform (bray_t bray)
bray_t fromClockwise4 (short dir)
bray_t fromClockwise8 (short dir)
bray_t fromClockwise16 (short dir)
bray_t fromClockwisePlatform (short dir)
bray_t abs (bray_t v)
 Translate to value in range 0 to (BRAY_RANGE / 2), which equals 0 to 180 degrees.
scale_t abss (scale_t t)
bray_t fromScale (scale_t v)
bray_t scale (scale_t s, bray_t b)
bray_t invert (bray_t b)
bray_t negate (bray_t b)

Static Public Attributes

const bray_t DEG0 = 0
const bray_t DEG45 = BRAY_RANGE * 1 / 8
const bray_t DEG90 = BRAY_RANGE * 2 / 8
const bray_t DEG135 = BRAY_RANGE * 3 / 8
const bray_t DEG180 = BRAY_RANGE * 4 / 8
const bray_t DEG225 = BRAY_RANGE * 5 / 8
const bray_t DEG270 = BRAY_RANGE * 6 / 8
const bray_t DEG315 = BRAY_RANGE * 7 / 8
const bray_t DEG360 = BRAY_RANGE * 8 / 8


Member Function Documentation

bray_t se_core::BrayT::abs bray_t  v  )  [inline, static]
 

Translate to value in range 0 to (BRAY_RANGE / 2), which equals 0 to 180 degrees.

Definition at line 172 of file BrayT.hpp.

References bray_t.

scale_t se_core::BrayT::abss scale_t  t  )  [inline, static]
 

Definition at line 177 of file BrayT.hpp.

References scale_t.

bray_t se_core::BrayT::add bray_t  b1,
bray_t  b2
[inline, static]
 

Definition at line 58 of file BrayT.hpp.

References bray_t.

bray_t se_core::BrayT::diff bray_t  b1,
bray_t  b2
[inline, static]
 

Definition at line 66 of file BrayT.hpp.

References abs, and bray_t.

bray_t se_core::BrayT::fromClockwise16 short  dir  )  [inline, static]
 

Definition at line 156 of file BrayT.hpp.

References bray_t.

bray_t se_core::BrayT::fromClockwise4 short  dir  )  [inline, static]
 

Definition at line 148 of file BrayT.hpp.

References bray_t.

bray_t se_core::BrayT::fromClockwise8 short  dir  )  [inline, static]
 

Definition at line 152 of file BrayT.hpp.

References bray_t.

bray_t se_core::BrayT::fromClockwisePlatform short  dir  )  [inline, static]
 

Definition at line 160 of file BrayT.hpp.

References bray_t.

bray_t se_core::BrayT::fromDeg float  deg  )  [inline, static]
 

Definition at line 101 of file BrayT.hpp.

References bray_t.

bray_t se_core::BrayT::fromRad float  rad  )  [inline, static]
 

Definition at line 89 of file BrayT.hpp.

References bray_t.

bray_t se_core::BrayT::fromScale scale_t  v  )  [inline, static]
 

Definition at line 178 of file BrayT.hpp.

References bray_t.

bray_t se_core::BrayT::invert bray_t  b  )  [inline, static]
 

Definition at line 196 of file BrayT.hpp.

References bray_t.

bool se_core::BrayT::isLeftwise bray_t  bray  )  [inline, static]
 

Definition at line 43 of file BrayT.hpp.

References AssertFatal.

bool se_core::BrayT::isRightwise bray_t  bray  )  [inline, static]
 

Definition at line 48 of file BrayT.hpp.

References AssertFatal.

bray_t se_core::BrayT::mask bray_t  bray  )  [inline, static]
 

Definition at line 54 of file BrayT.hpp.

References bray_t.

bray_t se_core::BrayT::negate bray_t  b  )  [inline, static]
 

Definition at line 200 of file BrayT.hpp.

References bray_t.

bray_t se_core::BrayT::scale scale_t  s,
bray_t  b
[inline, static]
 

Definition at line 187 of file BrayT.hpp.

References bray_t.

bray_t se_core::BrayT::sub bray_t  b1,
bray_t  b2
[inline, static]
 

Definition at line 62 of file BrayT.hpp.

References bray_t.

short se_core::BrayT::to16 bray_t  bray  )  [inline, static]
 

Definition at line 115 of file BrayT.hpp.

References bray_t.

short se_core::BrayT::to4 bray_t  bray  )  [inline, static]
 

Definition at line 105 of file BrayT.hpp.

References bray_t.

short se_core::BrayT::to8 bray_t  bray  )  [inline, static]
 

Definition at line 110 of file BrayT.hpp.

References bray_t.

float se_core::BrayT::toBray bray_t  bray  )  [inline, static]
 

Definition at line 97 of file BrayT.hpp.

short se_core::BrayT::toClockwise16 bray_t  bray  )  [inline, static]
 

Definition at line 136 of file BrayT.hpp.

short se_core::BrayT::toClockwise4 bray_t  bray  )  [inline, static]
 

Definition at line 128 of file BrayT.hpp.

short se_core::BrayT::toClockwise8 bray_t  bray  )  [inline, static]
 

Definition at line 132 of file BrayT.hpp.

short se_core::BrayT::toClockwisePlatform bray_t  bray  )  [inline, static]
 

Definition at line 140 of file BrayT.hpp.

float se_core::BrayT::toDeg bray_t  bray  )  [inline, static]
 

Definition at line 93 of file BrayT.hpp.

short se_core::BrayT::toPlatform bray_t  bray  )  [inline, static]
 

Definition at line 120 of file BrayT.hpp.

float se_core::BrayT::toRad bray_t  bray  )  [inline, static]
 

Definition at line 85 of file BrayT.hpp.

bray_t se_core::BrayT::towards bray_t  from,
bray_t  to,
bray_t  d
[inline, static]
 

Definition at line 71 of file BrayT.hpp.

References abs, and bray_t.


Member Data Documentation

const bray_t se_core::BrayT::DEG0 = 0 [static]
 

Definition at line 32 of file BrayT.hpp.

const bray_t se_core::BrayT::DEG135 = BRAY_RANGE * 3 / 8 [static]
 

Definition at line 35 of file BrayT.hpp.

const bray_t se_core::BrayT::DEG180 = BRAY_RANGE * 4 / 8 [static]
 

Definition at line 36 of file BrayT.hpp.

const bray_t se_core::BrayT::DEG225 = BRAY_RANGE * 5 / 8 [static]
 

Definition at line 37 of file BrayT.hpp.

const bray_t se_core::BrayT::DEG270 = BRAY_RANGE * 6 / 8 [static]
 

Definition at line 38 of file BrayT.hpp.

const bray_t se_core::BrayT::DEG315 = BRAY_RANGE * 7 / 8 [static]
 

Definition at line 39 of file BrayT.hpp.

const bray_t se_core::BrayT::DEG360 = BRAY_RANGE * 8 / 8 [static]
 

Definition at line 40 of file BrayT.hpp.

const bray_t se_core::BrayT::DEG45 = BRAY_RANGE * 1 / 8 [static]
 

Definition at line 33 of file BrayT.hpp.

const bray_t se_core::BrayT::DEG90 = BRAY_RANGE * 2 / 8 [static]
 

Definition at line 34 of file BrayT.hpp.


The documentation for this class was generated from the following file:

Home Page | SagaEngine trunk (updated nightly) reference generated Sun Dec 2 20:06:30 2007 by Doxygen version 1.3.9.1.

SourceForge.net Logo