Image_3D
[ class tree: Image_3D ] [ index: Image_3D ] [ all elements ]

Class: Image_3D_Coordinate

Source Location: /Image_3D-0.4.2/Image/3D/Coordinate.php

Class Overview


Image_3D_Coordinate


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 1997-2005 Kore Nordmann

Variables

Methods


Child classes:

Image_3D_Point
Image_3D_Point
Image_3D_Vector
Image_3D_Vector
Image_3D_Light
Image_3D_Light

Inherited Variables

Inherited Methods


Class Details

[line 51]
Image_3D_Coordinate

Base class for coordinates eg. points in the space



[ Top ]


Class Variables

$_lastTransformation =

[line 82]

ID of the last transformation
  • Access: protected

Type:   string


[ Top ]

$_processed =

[line 89]

Variable saves if all relevant calculations for this point are done
  • Access: protected

Type:   boolean


[ Top ]

$_screenCoordinates =

[line 96]

Screen coordinates (2d) of 3d-point
  • Access: protected

Type:   array


[ Top ]

$_x =

[line 61]

X Coordiante
  • Access: protected

Type:   float


[ Top ]

$_y =

[line 68]

Y Coordiante
  • Access: protected

Type:   float


[ Top ]

$_z =

[line 75]

Z Coordiante
  • Access: protected

Type:   float


[ Top ]



Method Detail

__construct (Constructor)   [line 112]

Image_3D_Coordinate __construct( mixed $x, mixed $y, mixed $z)

Constructor for Image_3D_Coordinate

Create a Point with the given coordinates

  • Return: Instance of Coordinate
  • Access: public

Overridden in child classes as:

Image_3D_Point::__construct()
Image_3D_Line::__construct()
Image_3D_Light::__construct()
Image_3D_Light_Point::__construct()
Image_3D_Light_Spotlight::__construct()
Image_3D_Light_Ambient::__construct()

Parameters:

mixed   $x     X Coordinate
mixed   $y     Y Coordinate
mixed   $z     Z Coordinate

[ Top ]

getScreenCoordinates   [line 264]

array getScreenCoordinates( )

Get screen coordinates

Return an array with the screen coordinates array ( 0 => (float) $x,

  • Return: Screen coordinates
  • Access: public

[ Top ]

getX   [line 199]

float getX( )

Return X coordinate

Returns the X coordinate of the coordinate

  • Return: X coordinate
  • Access: public

[ Top ]

getY   [line 214]

float getY( )

Return Y coordinate

Returns the Y coordinate of the coordinate

  • Return: Y coordinate
  • Access: public

[ Top ]

getZ   [line 229]

float getZ( )

Return Z coordinate

Returns the Z coordinate of the coordinate

  • Return: Z coordinate
  • Access: public

[ Top ]

isProcessed   [line 184]

bool isProcessed( )

Coordinate already processed

Return if coordinate already was processsed

  • Return: processed
  • Access: public

[ Top ]

processed   [line 169]

void processed( )

Set Coordinate processed

Store the coordinate as processed

  • Access: public

[ Top ]

setScreenCoordinates   [line 247]

void setScreenCoordinates( float $x, float $y)

Set precalculated screen coordinates

Store the screen coordinates calculated by the Renderer

  • Access: public

Parameters:

float   $x     X coordinate
float   $y     Y coordinate

[ Top ]

transform   [line 132]

void transform( Image_3D_Matrix $matrix, [string $id = null])

Transform the Coordinate

Use a transformationmatrix to transform (move) the point

  • Access: public

Parameters:

Image_3D_Matrix   $matrix     Transformationmatrix
string   $id     Transformationid

[ Top ]

__toString   [line 277]

string __toString( )

Returns coordinate as string
  • Return: Coordinate
  • Access: public

Overridden in child classes as:

Image_3D_Point::__toString()
Image_3D_Line::__toString()

[ Top ]


Documentation generated on Sun, 08 Apr 2012 13:30:09 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.