Dokumentacja struktury common::COLORF
[Kolory]

Kolor z 4 liczb typu float - R, G, B, A. Więcej...

#include <Math.hpp>

Lista wszystkich składowych.

Metody publiczne

 COLORF ()
 COLORF (float R, float G, float B)
 COLORF (float A, float R, float G, float B)
 COLORF (const float *Arr)
 operator float * ()
 operator const float * () const
bool operator== (const COLORF &c) const
bool operator!= (const COLORF &c) const
COLORF operator+ () const
COLORF operator- () const
COLORF operator+ (const COLORF &c) const
COLORF operator- (const COLORF &c) const
COLORF & operator+= (const COLORF &c)
COLORF & operator-= (const COLORF &c)
COLORF operator* (float s) const
COLORF operator/ (float s) const
COLORF & operator*= (float s)
COLORF & operator/= (float s)
COLORF operator* (const COLORF &c) const
COLORF & operator*= (const COLORF &c)
bool IsValid () const
 Sprawdza, czy składowe mieszczą się w zakresie 0.0 .. 1.0.
void Repair ()
 Sprowadza składowe do zakresu 0.0 .. 1.0.

Atrybuty publiczne

float R
float G
float B
float A


Opis szczegółowy

Kolor z 4 liczb typu float - R, G, B, A.

Operacje dodawania i odejmowania kolorów, a także dodawania, odejmowania, mnożenia i dzielenia przez liczbę nie pilnują zakresu i wartości składowych mogą urosnąć powyżej 1.0 albo zmaleć poniżej 0.0.


Dokumentacja konstruktora i destruktora

common::COLORF::COLORF (  )  [inline]

common::COLORF::COLORF ( float  R,
float  G,
float  B 
) [inline]

common::COLORF::COLORF ( float  A,
float  R,
float  G,
float  B 
) [inline]

common::COLORF::COLORF ( const float *  Arr  )  [inline]


Dokumentacja funkcji składowych

common::COLORF::operator float * (  )  [inline]

common::COLORF::operator const float * (  )  const [inline]

bool common::COLORF::operator== ( const COLORF &  c  )  const [inline]

bool common::COLORF::operator!= ( const COLORF &  c  )  const [inline]

COLORF common::COLORF::operator+ (  )  const [inline]

COLORF common::COLORF::operator- (  )  const [inline]

COLORF common::COLORF::operator+ ( const COLORF &  c  )  const [inline]

COLORF common::COLORF::operator- ( const COLORF &  c  )  const [inline]

COLORF& common::COLORF::operator+= ( const COLORF &  c  )  [inline]

COLORF& common::COLORF::operator-= ( const COLORF &  c  )  [inline]

COLORF common::COLORF::operator* ( float  s  )  const [inline]

COLORF common::COLORF::operator/ ( float  s  )  const [inline]

COLORF& common::COLORF::operator*= ( float  s  )  [inline]

COLORF& common::COLORF::operator/= ( float  s  )  [inline]

COLORF common::COLORF::operator* ( const COLORF &  c  )  const [inline]

COLORF& common::COLORF::operator*= ( const COLORF &  c  )  [inline]

bool common::COLORF::IsValid (  )  const [inline]

Sprawdza, czy składowe mieszczą się w zakresie 0.0 .. 1.0.

void common::COLORF::Repair (  )  [inline]

Sprowadza składowe do zakresu 0.0 .. 1.0.


Dokumentacja atrybutów składowych


Dokumentacja dla tej struktury została wygenerowana z pliku:

Wygenerowano Sat Mar 29 18:17:02 2008 dla CommonLib programem  doxygen 1.5.5