OpenLayers.Geometry.Point - OpenLayers

# OpenLayers. Geometry. Point

Point geometry class.

#### Inherits from

- OpenLayers.Geometry

Summary

OpenLayers. Geometry. Point | Point geometry class.
Properties |
x | {float}
y | {float}
Constructor |
OpenLayers. Geometry. Point | Construct a point geometry.
Functions |
clone | {OpenLayers.Geometry.Point} An exact clone of this OpenLayers.Geometry.Point
distanceTo |
equals |
move | Moves a point in place
rotate | Rotate a point around another.
resize | Resize a point relative to some origin.
intersects | Determine if the input geometry intersects this one.
transform | Translate the x,y properties of the point from source to dest.

### Properties

### x

{float}

### y

{float}

### Constructor

### OpenLayers. Geometry. Point

Construct a point geometry.

#### Parameters

x | {float}
y | {float}

### Functions

### clone

> clone: function( | obj | )

#### Returns

{OpenLayers.Geometry.Point} An exact clone of this OpenLayers.Geometry.Point

### distanceTo

> distanceTo: function( | point | )

#### Parameters

point | {OpenLayers.Geometry.Point}

### equals

> equals:function( | geom | )

#### Parameters

xy | {OpenLayers.Geometry}

#### Returns

{Boolean} Boolean value indicating whether the passed-in {OpenLayers.Geometry} object has the same components as this note that if ll passed in is null, returns false

### move

> move: function( | x,
> | y | )

Moves a point in place

#### Parameters

x | {Float}
y | {Float}

### rotate

> rotate: function( | angle,
> | origin | )

Rotate a point around another.

#### Parameters

angle | {Float} Rotation angle in degrees (measured counterclockwise from the positive x-axis)
origin | {OpenLayers.Geometry.Point} Center point for the rotation

### resize

> resize: function( | scale,
> | origin,
> | ratio | )

Resize a point relative to some origin. For points, this has the effect of scaling a vector (from the origin to the point). This method is more useful on geometry collection subclasses.

#### Parameters

scale | {Float} Ratio of the new distance from the origin to the old distance from the origin. A scale of 2 doubles the distance between the point and origin.
origin | {OpenLayers.Geometry.Point} Point of origin for resizing
ratio | {Float} Optional x:y ratio for resizing. Default ratio is 1.

### intersects

> intersects: function( | geometry | )

Determine if the input geometry intersects this one.

#### Parameters

geometry | {OpenLayers.Geometry} Any type of geometry.

#### Returns

{Boolean} The input geometry intersects this one.

### transform

> transform: function( | source,
> | dest | )

Translate the x,y properties of the point from source to dest.

#### Parameters

source | {OpenLayers.Projection}
dest | {OpenLayers.Projection}

#### Returns

{OpenLayers.Geometry}

> clone: function( | obj | )

{OpenLayers.Geometry.Point} An exact clone of this OpenLayers.Geometry.Point
Construct a point geometry.

> distanceTo: function( | point | )

> equals:function( | geom | )

> move: function( | x,
> | y | )

Moves a point in place

> rotate: function( | angle,
> | origin | )

Rotate a point around another.

> resize: function( | scale,
> | origin,
> | ratio | )

Resize a point relative to some origin.

> intersects: function( | geometry | )

Determine if the input geometry intersects this one.

> transform: function( | source,
> | dest | )

Translate the x,y properties of the point from source to dest.
A Geometry is a description of a geographic object.
Class for coordinate transforms between coordinate systems.
Close