blob: 04fe642d0927095273d0efcd3ec9861c88f85936 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<?php
/**
* File containing the ezcGraphTranslation class
*
* @package Graph
* @version //autogentag//
* @copyright Copyright (C) 2005-2007 eZ systems as. All rights reserved.
* @license http://ez.no/licenses/new_bsd New BSD License
* @access private
*/
/**
* Class creating translation matrices from given movements
*
* @package Graph
* @access private
*/
class ezcGraphTranslation extends ezcGraphTransformation
{
public function __construct( $x = 0, $y = 0 )
{
parent::__construct( array(
array( 1, 0, $x ),
array( 0, 1, $y ),
array( 0, 0, 1 ),
) );
}
}
?>
|