BaseShape
Kind of class: | class |
---|---|
Inherits from: | CoreObject |
Implements: | |
Known subclasses: | |
Version: | 08/02/07 |
Author: | Aaron Clinger |
Classpath: | org.casalib.math.geom.BaseShape |
File last modified: | Monday, 01 December 2008, 13:34:40 |
Base shape class. Class needs to be extended further to function properly.
Summary
Instance methods
- getX : Number
- setX (x:Number) : Void
- Sets the X coordinate.
- getY : Number
- setY (y:Number) : Void
- Sets the Y coordinate.
- getPosition : Point
- setPosition (pointObject:Point) : Void
- Sets the value of the top left X and Y position of the shape.
- getCenterPoint : Point
- getWidth : Number
- setWidth (width:Number) : Void
- Sets the width of the shape at its widest point.
- getHeight : Number
- setHeight (height:Number) : Void
- Sets the height of the shape at its tallest point.
- getPerimeter : Number
- getArea : Number
- containsPoint (pointObject:Point) : Boolean
- Finds if point is contained inside the shape's perimeter.
- equals (shape:ShapeInterface) : Boolean
- clone : ShapeInterface
- destroy : Void
- Removes any internal variables, intervals, enter frames, internal MovieClips and event observers to allow the object to be garbage collected.Instance methods inherited from CoreObject
Instance methods
containsPoint
Finds if point is contained inside the shape's perimeter.#Returns:- Returns {VISDOC_CODE_BLOCK_0} if shape's area contains point; otherwise {VISDOC_CODE_BLOCK_1}.#
Specified by:destroy
function destroy () : VoidRemoves any internal variables, intervals, enter frames, internal MovieClips and event observers to allow the object to be garbage collected.#
Always call {VISDOC_CODE_BLOCK_0} before deleting last object pointer.Overrides:Specified by:equals
getCenterPoint
Specified by:getHeight
function getHeight () : NumberReturns:- The height of the shape at its tallest point.#
Specified by:getPerimeter
function getPerimeter () : NumberReturns:- The distance around the shape.#
Specified by:getPosition
Specified by:getWidth
function getWidth () : NumberReturns:- The width of the shape at its widest point.#
Specified by:setHeight
function setHeight (height:Number) : VoidSets the height of the shape at its tallest point.#Parameters:height:Height of the shape.#Specified by:setWidth
function setWidth (width:Number) : VoidSets the width of the shape at its widest point.#Parameters:width:Width of the shape.#Specified by:setX
function setX (x:Number) : VoidSets the X coordinate.#Parameters:x:The horizontal coordinate of the point.#Specified by: