BaseShape
| Kind of class: | class |
|---|---|
| Inherits from: | CoreObject |
| Implements: | |
| Known subclasses: | |
| Version: | 08/02/07 |
| Author: | Aaron Clinger |
| Classpath: | org.casaframework.math.geom.BaseShape |
| File last modified: | Sunday, 19 August 2007, 13:43:31 |
Base shape class. Class needs to be extended further to function properly.
Summary
Instance properties
Instance properties inherited from CoreObject
Instance methods
- getX
- setX
- getY
- setY
- getPosition
- setPosition
- getCenterPoint
- getWidth
- setWidth
- getHeight
- setHeight
- getPerimeter
- getArea
- containsPoint
- equals
- clone
- destroy
Instance methods inherited from CoreObject
Instance methods
clone
function clone () : ShapeInterface
Returns:
A new shape object with the same values as this shape.
#Specified by:
containsPoint
function containsPoint (pointObject:Point) : Boolean
Finds if point is contained inside the shape's perimeter.
#Returns:
Returns
#true if shape's area contains point; otherwise false.Specified by:
destroy
function destroy () : Void
Removes any internal variables, intervals, enter frames, internal MovieClips and event observers to allow the object to be garbage collected.
Always call
#Always call
destroy() before deleting last object pointer.Specified by:
equals
function equals (shape:ShapeInterface) : Boolean
getHeight
function getHeight () : Number
Returns:
The height of the shape at its tallest point.
#Specified by:
getWidth
function getWidth () : Number
Returns:
The width of the shape at its widest point.
#Specified by:
setHeight
function setHeight (height:Number) : Void
Sets the height of the shape at its tallest point.
#Parameters:
height:
Height of the shape.
#Specified by:
setPosition
function setPosition (pointObject:Point) : Void
Sets the value of the top left X and Y position of the shape.
#Specified by:
setWidth
function setWidth (width:Number) : Void
Sets the width of the shape at its widest point.
#Parameters:
width:
Width of the shape.
#Specified by:
setX
function setX (x:Number) : Void
Sets the X coordinate.
#Parameters:
x:
The horizontal coordinate of the point.
#Specified by: