Assimp: aiColor3D Struct Reference

assimp - Open Asset Import Library

Represents a color in Red-Green-Blue space. More...

Public Member Functions

 aiColor3D ()
 
 aiColor3D (float _r, float _g, float _b)
 
 aiColor3D (float _r)
 
 aiColor3D (const aiColor3D &o)
 
bool IsBlack () const
 Check whether a color is black. More...
 
bool operator!= (const aiColor3D &other) const
 Component-wise inverse comparison. More...
 
aiColor3D operator* (const aiColor3D &c) const
 Component-wise multiplication. More...
 
aiColor3D operator* (float f) const
 Multiply with a scalar. More...
 
aiColor3D operator+ (const aiColor3D &c) const
 Component-wise addition. More...
 
aiColor3D operator- (const aiColor3D &c) const
 Component-wise subtraction. More...
 
bool operator< (const aiColor3D &other) const
 Component-wise comparison. More...
 
bool operator== (const aiColor3D &other) const
 Component-wise comparison. More...
 
float operator[] (unsigned int i) const
 Access a specific color component. More...
 
float & operator[] (unsigned int i)
 Access a specific color component. More...
 

Public Attributes

float b
 
float g
 
float r
 Red, green and blue color values. More...
 

Detailed Description

Represents a color in Red-Green-Blue space.

Constructor & Destructor Documentation

aiColor3D::aiColor3D ( )
inline
aiColor3D::aiColor3D ( float  _r,
float  _g,
float  _b 
)
inline
aiColor3D::aiColor3D ( float  _r)
inlineexplicit
aiColor3D::aiColor3D ( const aiColor3D o)
inline

Member Function Documentation

bool aiColor3D::IsBlack ( ) const
inline

Check whether a color is black.

bool aiColor3D::operator!= ( const aiColor3D other) const
inline

Component-wise inverse comparison.

aiColor3D aiColor3D::operator* ( const aiColor3D c) const
inline

Component-wise multiplication.

aiColor3D aiColor3D::operator* ( float  f) const
inline

Multiply with a scalar.

aiColor3D aiColor3D::operator+ ( const aiColor3D c) const
inline

Component-wise addition.

aiColor3D aiColor3D::operator- ( const aiColor3D c) const
inline

Component-wise subtraction.

bool aiColor3D::operator< ( const aiColor3D other) const
inline

Component-wise comparison.

bool aiColor3D::operator== ( const aiColor3D other) const
inline

Component-wise comparison.

float aiColor3D::operator[] ( unsigned int  i) const
inline

Access a specific color component.

float& aiColor3D::operator[] ( unsigned int  i)
inline

Access a specific color component.

Member Data Documentation

float aiColor3D::b
float aiColor3D::g
float aiColor3D::r

Red, green and blue color values.

The documentation for this struct was generated from the following file:
Generated on Sun Feb 21 2016 19:42:29 for Assimp by   doxygen 1.8.11