API Documentation | All Packages | All Classes | Index | Frames No Frames |
Class Point

Package | org.openscales.core.geometry
Class | public class Point
Inheritance | Point Geometry

Class to represent a point geometry.

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined by
--- | --- | ---
|  | area : Number Returns the geometry's area. | Geometry
|  | bounds : Bounds | Geometry
|  | id : String | Geometry
|  | length : Number Returns the geometry's length. | Geometry
|  | parent : Geometry | Geometry
|  | x : Number | Point
|  | y : Number | Point

Protected Properties
Hide Inherited Protected Properties
Show Inherited Protected Properties

| Property | Defined by
--- | --- | ---
|  | _bounds : Bounds = null The bounds of this geometry | Geometry

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined by
--- | --- | ---
|  | Point(x:Number, y:Number) | Point
|  | atPoint(lonlat:LonLat, toleranceLon:Number, toleranceLat:Number):Boolean Determines if the feature is placed at the given point with a certain tolerance (or not). | Geometry
|  | calculateBounds():void | Point
|  | clearBounds():void Clear the geometry's bounds | Geometry
|  | clone():Geometry To get this geometry clone | Point
|  | contains(geom:Geometry, assertIntersection:Boolean = false):Boolean Determine if the input geometry is fully contained in this one. | Geometry
|  | containsPoint(p:Point):Boolean Test if a point is inside this geometry. | Geometry
|  | destroy():void Destroys the geometry | Geometry
|  | distanceTo(point:Geometry):Number | Point
|  | equals(point:Point):Boolean | Point
|  | extendBounds(newBounds:Bounds):void Extends geometry's bounds If bounds are not defined yet, it initializes the bounds. | Geometry
|  | intersects(geom:Geometry):Boolean Determine if the input geometry intersects this one. | Point
|  | isLeftOrRight(p:Point, p0:Point, p1:Point):Number [static] Test if a point is at the left, at the right or on an infinite line. | Geometry
|  | move(x:Number, y:Number):void | Point
|  | segmentsIntersect(seg1:Array, seg2:Array, tolerance:Number = 0.0):Boolean [static] Determine whether two line segments intersect or not. | Geometry
|  | toShortString():String | Point
|  | toVertices():Array Return an array of all the vertices (Point) of this geometry | Point
|  | transform(source:ProjProjection, dest:ProjProjection):void Method to convert the point (x/y) from a projection sysrtem to an other. | Point

Property detail

x | property

`x:Number` [read-write]Implementation
`public function get x():Number`
`public function set x(value:Number):void`

y | property |

`y:Number` [read-write]Implementation
`public function get y():Number`
`public function set y(value:Number):void`
Constructor detail

Point | () | constructor

`public function Point(x:Number, y:Number)`Parameters

| `x:Number`
| `y:Number`

Method detail

calculateBounds | () | method

`public override function calculateBounds():void`

clone | () | method |

`public override function clone():Geometry`

To get this geometry clone

Returns

| `Geometry`

distanceTo | () | method |

`public override function distanceTo(point:Geometry):Number` Parameters

| `point:Geometry`

Returns

| `Number`

equals | () | method |

`public function equals(point:Point):Boolean` Parameters

| `point:Point`

Returns

| `Boolean`

intersects | () | method |

`public override function intersects(geom:Geometry):Boolean`

Determine if the input geometry intersects this one.

Parameters

| `geom:Geometry` — Any type of geometry.

Returns

| `Boolean` — Boolean defining if the input geometry intersects this one.

move | () | method |

`public function move(x:Number, y:Number):void` Parameters

| `x:Number`
| `y:Number`

toShortString | () | method |

`public override function toShortString():String`

Returns

| `String`

toVertices | () | method |

`public override function toVertices():Array`

Return an array of all the vertices (Point) of this geometry

Returns

| `Array`

transform | () | method |

`public override function transform(source:ProjProjection, dest:ProjProjection):void`

Method to convert the point (x/y) from a projection sysrtem to an other.

Parameters

| `source:ProjProjection` — The source projection
| `dest:ProjProjection` — The destination projection