Assimp v5.2.2 (January 2022)
The Asset-Importer-Lib API documentation.
aiColor3D Struct Reference

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

#include <types.h>

Public Member Functions

 aiColor3D () AI_NO_EXCEPT
 
 aiColor3D (ai_real _r)
 
 aiColor3D (ai_real _r, ai_real _g, ai_real _b)
 
 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* (ai_real f) const
 Multiply with a scalar. More...
 
aiColor3D operator* (const aiColor3D &c) const
 Component-wise multiplication. 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...
 
aiColor3Doperator= (const aiColor3D &o)
 
bool operator== (const aiColor3D &other) const
 Component-wise comparison. More...
 
ai_realoperator[] (unsigned int i)
 Access a specific color component. More...
 
ai_real operator[] (unsigned int i) const
 Access a specific color component. More...
 

Public Attributes

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

Detailed Description

Represents a color in Red-Green-Blue space.

Constructor & Destructor Documentation

◆ aiColor3D() [1/4]

aiColor3D::aiColor3D ( )
inline

◆ aiColor3D() [2/4]

aiColor3D::aiColor3D ( ai_real  _r,
ai_real  _g,
ai_real  _b 
)
inline

◆ aiColor3D() [3/4]

aiColor3D::aiColor3D ( ai_real  _r)
inlineexplicit

◆ aiColor3D() [4/4]

aiColor3D::aiColor3D ( const aiColor3D o)
inline

Member Function Documentation

◆ IsBlack()

bool aiColor3D::IsBlack ( ) const
inline

Check whether a color is black.

◆ operator!=()

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

Component-wise inverse comparison.

◆ operator*() [1/2]

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

Multiply with a scalar.

◆ operator*() [2/2]

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

Component-wise multiplication.

◆ operator+()

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

Component-wise addition.

◆ operator-()

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

Component-wise subtraction.

◆ operator<()

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

Component-wise comparison.

◆ operator=()

aiColor3D & aiColor3D::operator= ( const aiColor3D o)
inline

◆ operator==()

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

Component-wise comparison.

◆ operator[]() [1/2]

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

Access a specific color component.

◆ operator[]() [2/2]

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

Access a specific color component.

Member Data Documentation

◆ b

ai_real aiColor3D::b

◆ g

ai_real aiColor3D::g

◆ r

ai_real aiColor3D::r

Red, green and blue color values.


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