Yahoo! UI Library

CHZERO  1.0.0

Yahoo! UI Library > CHZERO > OpenLayers.Pixel
Search:
 
Filters

Class OpenLayers.Pixel

OpenLayers Pixel
스크린 좌표 나타냄.

Constructor

OpenLayers.Pixel ( x , y )
Parameters:
x <Number> x좌표
y <Number> y좌표

Properties

x - {Number}

x좌표

y - {Number}

y좌표

Methods

add

OpenLayers.Pixel add ( x , y )
받은 x,y와 x,y 더하여 새로운 pixel 반환
Parameters:
x <Integer>
y <Integer>
Returns: OpenLayers.Pixel
새로운 Pixel

clone

OpenLayers.Pixel clone ( )
Pixel clone.
Returns: OpenLayers.Pixel
clone pixel

distanceTo

Float distanceTo ( px )
받은 pixel과의 거리계산.
Parameters:
px <OpenLayers.Pixel>
Returns: Float
거리

equals

Boolean equals ( )
다른 Pixel 비교해서 같으면 true 반환
Returns: Boolean
같으면 true

offset

OpenLayers.Pixel offset ( px )
받은 pixel의 x,y와 x,y 더하여 새로운 pixel 반환
Parameters:
px <OpenLayers.Pixel>
Returns: OpenLayers.Pixel
새로운 Pixel


Copyright © 2012 Yahoo! Inc. All rights reserved.