eZMath Class Reference

eZMath provide a simple math library for common math operations More...

List of all members.

Public Member Functions

 eZMath ()

Static Public Member Functions

normalizeColorArray (&$array)
 rgbToCMYK ($rgbArray)
 rgbToCMYK2 ($r, $g, $b)

Detailed Description

eZMath provide a simple math library for common math operations

Definition at line 41 of file ezmath.php.


Member Function Documentation

eZMath::eZMath (  ) 

Constructor

Definition at line 46 of file ezmath.php.

& eZMath::normalizeColorArray ( &$  array  )  [static]

Normalize RGB color array to 0..1 range

Parameters:
array to normalize (changes values in array)
Returns:
normalized array

Definition at line 59 of file ezmath.php.

Referenced by eZPDF::modify().

eZMath::rgbToCMYK ( rgbArray  )  [static]

Convert RGB to CMYK, Normalized values, between 0 and 1

Parameters:
RGB array
Returns:
CMYK array

Definition at line 77 of file ezmath.php.

Referenced by Cpdf::Cpdf(), Cpdf::o_shading(), and rgbToCMYK2().

eZMath::rgbToCMYK2 ( r,
g,
b 
) [static]

Convert rgb to CMYK

Parameters:
R 
B 
G 
Returns:
CMYK return array

Definition at line 109 of file ezmath.php.

Referenced by eZPDFTable::ezTable(), eZPDF::modify(), Cpdf::o_shading(), eZPDFTable::pushStack(), Cpdf::setColorRGB(), and Cpdf::setStrokeColorRGB().


The documentation for this class was generated from the following file:
Generated on Mon Jul 12 07:10:27 2010 for eZ publish by  doxygen 1.6.3