[ Index ]

PHP Cross Reference of MantisBT

title

Body

[close]

/library/ezc/Graph/src/math/ -> transformation.php (summary)

File containing the ezcGraphTransformation class

Copyright: Copyright (C) 2005-2009 eZ Systems AS. All rights reserved.
License: http://ez.no/licenses/new_bsd New BSD License
Version: 1.5
File Size: 96 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ezcGraphTransformation:: (3 methods):
  __construct()
  multiply()
  transformCoordinate()


Class: ezcGraphTransformation  - X-Ref

Class defining transformations

Three dimensional matrices (3x3) may be used to specify transformation of
points, vectors and complexer structures in a two dimensional cartesian
coordinate system. For more details have a look here:
http://en.wikipedia.org/wiki/Transformation_matrix

There are some classes extending this basic tranformation class, to
give you more convinient access to the creation of such transformation
matrices, which are:

- ezcGraphRotation (rotations of objects)
- ezcGraphTranslation (moving of objects)

__construct( array $values = null )   X-Ref
Constructor

Creates a matrix with 3x3 dimensions. Optionally accepts an array to
define the initial matrix values. If no array is given an identity
matrix is created.

param: array $values
return: void

multiply( ezcGraphMatrix $matrix )   X-Ref
Multiplies two matrices

Multiply current matrix with another matrix and returns the result
matrix.

param: ezcGraphMatrix $matrix Second factor
return: ezcGraphMatrix Result matrix

transformCoordinate( ezcGraphCoordinate $coordinate )   X-Ref
Transform a coordinate with the current transformation matrix.

param: ezcGraphCoordinate $coordinate
return: ezcGraphCoordinate



Generated: Thu Jul 28 15:48:31 2011 Cross-referenced by PHPXref 0.7