Package: | Ext.util |
Defined In: | Point.js |
Class: | Point |
Extends: | Object |
var point = Ext.util.Point.fromEvent(e);
Method | Defined By | |
---|---|---|
Point.fromEvent( Event e )
:
void<static> Returns a new instance of Ext.util.Point base on the pageX / pageY values of the given event <static> Returns a new instance of Ext.util.Point base on the pageX / pageY values of the given event Parameters:
| Point | |
copy()
:
Ext.util.Point Copy a new instance of this point Copy a new instance of this point Parameters:
| Point | |
copyFrom( )
:
Ext.util.PointCopy the x and y values of another point / object to this point itself Copy the x and y values of another point / object to this point itself Parameters:
| Point | |
equals( Ext.util.Point/Object The )
:
BooleanCompare this point and another point Compare this point and another point Parameters:
| Point | |
isWithin( Ext.util.Point/Object The , Number threshold )
:
BooleanWhether the given point is not away from this point within the given threshold amount Whether the given point is not away from this point within the given threshold amount Parameters:
| Point | |
roundedEquals( Ext.util.Point/Object The )
:
BooleanCompare this point with another point when the x and y values of both points are rounded. E.g:
[100.3,199.8] will equ... 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] Parameters:
| Point | |
toString()
:
String Returns a human-eye-friendly string that represents this point,
useful for debugging Returns a human-eye-friendly string that represents this point,
useful for debugging Parameters:
| Point | |
translate( Number x , Number y )
:
BooleanTranslate this point by the given amounts Translate this point by the given amounts Parameters:
| Point |