Point geometry class.
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. |
clone: function( obj )
{OpenLayers.Geometry.Point} An exact clone of this OpenLayers.Geometry.Point
equals:function( geom )
xy | {OpenLayers.Geometry} |
{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
rotate: function( angle, origin )
Rotate a point around another.
angle | {Float} Rotation angle in degrees (measured counterclockwise from the positive x-axis) |
origin | {OpenLayers.Geometry.Point} Center point for the rotation |
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.
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: function( geometry )
Determine if the input geometry intersects this one.
geometry | {OpenLayers.Geometry} Any type of geometry. |
{Boolean} The input geometry intersects this one.
transform: function( source, dest )
Translate the x,y properties of the point from source to dest.
source | {OpenLayers.Projection} |
dest | {OpenLayers.Projection} |
{OpenLayers.Geometry.Point} An exact clone of this OpenLayers.Geometry.Point
clone: function( obj )
distanceTo: function( point )
equals:function( geom )
Moves a point in place
move: function( x, y )
Rotate a point around another.
rotate: function( angle, origin )
Resize a point relative to some origin.
resize: function( scale, origin, ratio )
Determine if the input geometry intersects this one.
intersects: function( geometry )
Translate the x,y properties of the point from source to dest.
transform: function( source, dest )