Clear Up
SharpKit Reference

Point Class

Namespace: Ext.util

Base Types

System.Object

Constructors

Name Description
Point()
Point(object, object)

Methods

Name Description
clone() Copy a new instance of this point @return {Ext.util.Point} the new point
copy() Clones this Point. Deprecated, please use {@link #clone} instead @deprecated 2.0.0
copyFrom(object) Copy the x and y values of another point / object to this point itself @param {Ext.util.Point/Object} point @return {Ext.util.Point} this This point
equals(object) Compare this point and another point @param {Ext.util.Point/Object} The point to compare with, either an instance of Ext.util.Point or an object with x and y properties @return {Boolean} Returns whether they are equivalent
getAngleTo(object)
getDistanceTo(object)
isCloseTo(object, object) Whether the given point is not away from this point within the given threshold amount @param {Ext.util.Point/Object} The point to check with, either an instance of Ext.util.Point or an object with x and y properties @param {Object/Number} threshold Can be either an object with x and y properties or a number @return {Boolean}
isWithin() Returns true if this point is close to another one. Deprecated, please use {@link #isCloseTo} instead @deprecated 2.0.0
roundedEquals(object) Compare this point with another point when the x and y values of both points are rounded. E.g: [100.3,199.8] will equals to [100, 200] @param {Ext.util.Point/Object} The point to compare with, either an instance of Ext.util.Point or an object with x and y properties @return {Boolean}
toString() Returns a human-eye-friendly string that represents this point, useful for debugging @return {String}
translate(JsNumber, JsNumber) Translate this point by the given amounts @param {Number} x Amount to translate in the x-axis @param {Number} y Amount to translate in the y-axis @return {Boolean}
© Copyright 2005-2011 SharpKit. All rights reserved.