#include "GeomExport.h"
#include "maxheap.h"
#include "maxtypes.h"
#include "point3.h"
#include "point4.h"
#include "color.h"
Go to the source code of this
file.
Typedef Documentation
Function Documentation
GEOMEXPORT int MaxComponent |
( |
const AColor & |
|
) |
|
- Parameters:
- const AColor&
The color to check.
- Returns:
- The index of the component with the maximum absolute value.
r=0, g=1, b=2, a=3.
GEOMEXPORT int MinComponent |
( |
const AColor & |
|
) |
|
- Parameters:
- const AColor&
The color to check.
- Returns:
- The index of the component with the minimum absolute value.
r=0, g=1, b=2, a=3.
- Returns:
- An AColor with each
component multiplied by a float.
Definition at line 301 of file acolor.h.
{
return(AColor(a.r*f, a.g*f, a.b*f, a.a*f));
}
- Returns:
- An AColor with each
component multiplied by a float.
Definition at line 307 of file acolor.h.
{
return(AColor(a.r*f, a.g*f, a.b*f, a.a*f));
}
- Parameters:
- const AColor
&fg
Specifies the foreground color to composite.
const AColor&
bg
Specifies the background color to composite over.
- Returns:
- The resulting AColor.
Definition at line 322 of file acolor.h.
{
return fg + (1.0f-fg.a)*bg;
}