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

Class: Point

Source Location: /common/BasicTypes.php

Class Overview

Serializable
   |
   --Shape
      |
      --Point

A single point


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: Shape

Shape::getArea()
Computes the shape's area
Shape::getCenter()
Computes the shape's center
Shape::unserialize()

Class: Serializable

Serializable::__construct()
Constructor
Serializable::copyAllVars()
Copy all properties from one object to another (overwriting previous ones)
Serializable::getValue()
Returns structure's property value if property exists
Serializable::guessClassName()
Tries to guess the class to use from the property being unserialised.
Serializable::unserialize()
Unserializes from a stdClass structure
Serializable::unserializeArray()
Returns an array of typed values
Serializable::unserializeObject()
Returns an unserialized object from a stdClass structure
Serializable::unserializeObjectMap()
Returns an array of unserialized objects from a stdClass structure
Serializable::unserializeStringArray()
Returns an array of typed values from a string
Serializable::unserializeValue()
Returns a typed value from a structure property

Class Details

[line 137]
A single point



Tags:

author:  Sylvain Pasche <sylvain.pasche@camptocamp.com>


[ Top ]


Class Variables

$x =

[line 142]



Tags:

access:  public

Type:   double


[ Top ]

$y =

[line 147]



Tags:

access:  public

Type:   double


[ Top ]



Class Methods


constructor __construct [line 155]

Point __construct( [double $x = 0], [double $y = 0], string 2)

Constructor



Tags:

access:  public


Overrides Serializable::__construct() (Constructor)

Parameters:

string   2  
double   $x  
double   $y  

[ Top ]

method getArea [line 205]

void getArea( )



Tags:

access:  public
see:  Shape::getArea()


Overrides Shape::getArea() (Computes the shape's area)

[ Top ]

method getCenter [line 196]

void getCenter( )



Tags:

access:  public
see:  Shape::getCenter()


Overrides Shape::getCenter() (Computes the shape's center)

[ Top ]

method getX [line 173]

double getX( )



Tags:

access:  public


[ Top ]

method getY [line 180]

double getY( )



Tags:

access:  public


[ Top ]

method setXY [line 188]

void setXY( double $x, double $y)



Tags:

access:  public


Parameters:

double   $x  
double   $y  

[ Top ]

method toBbox [line 216]

Bbox toBbox( [double $margin = 0])

Converts the Point to a Bbox

Optional margin will create a square around the point.




Tags:

return:  the Point converted to Bbox
access:  public


Parameters:

double   $margin   the margin

[ Top ]

method unserialize [line 164]

void unserialize( mixed $struct)



Tags:

access:  public
see:  Serializable::unserialize()


Overrides Shape::unserialize() (parent method not documented)

[ Top ]


Documentation generated on Wed, 6 Apr 2005 12:06:26 +0200 by phpDocumentor 1.3.0RC3