ShapeInterface
| Kind of class: | interface |
|---|---|
| Inherits from: | PointInterface < CoreInterface |
| Implemented by: | |
| Version: | 10/05/06 |
| Author: | Aaron Clinger |
| Classpath: | org.casaframework.math.geom.ShapeInterface |
| File last modified: | Wednesday, 07 March 2007, 14:18:37 |
Summary
Instance methods
Instance methods inherited from PointInterface
Instance methods inherited from CoreInterface
Instance methods
containsPoint
function containsPoint (
pointObject:Point) : Boolean
Finds if point is contained inside the shape's perimeter.
Parameters:
pointObject:
A defined Point object.
Returns:
Returns
true if area contains point; otherwise false.getArea
function getArea (
) : Number
Returns:
The size of the shape.
getHeight
function getHeight (
) : Number
Returns:
The height of the shape at its tallest point.
getPerimeter
function getPerimeter (
) : Number
Returns:
The distance around the shape.
getPosition
function getPosition (
) : Point
Returns:
A defined Point object with the value of the top left X and Y position of the shape.
getWidth
function getWidth (
) : Number
Returns:
The width of the shape at its widest point.
setHeight
function setHeight (
height:Number) : Void
Sets the height of the shape at its tallest point.
Parameters:
height:
Height of the shape.
setPosition
function setPosition (
pointObject:Point) : Void
Sets the value of the top left X and Y position of the shape.
Parameters:
pointObject:
A defined Point object.
setWidth
function setWidth (
width:Number) : Void
Sets the width of the shape at its widest point.
Parameters:
width:
Width of the shape.