C# Class Sparrow.Touches.Touch

显示文件 Open project: fmotagarcia/sparrow-sharp Class Usage Examples

Public Methods

Method Description
LocationInSpace ( DisplayObject space ) : Point

Converts the current location of a touch to the local coordinate system of a display object.

MovementInSpace ( DisplayObject space ) : Point

Returns the movement of the touch between the current and previous location.

PreviousLocationInSpace ( DisplayObject space ) : Point

Converts the previous location of a touch to the local coordinate system of a display object.

Method Details

LocationInSpace() public method

Converts the current location of a touch to the local coordinate system of a display object.
public LocationInSpace ( DisplayObject space ) : Point
space Sparrow.Display.DisplayObject
return Sparrow.Geom.Point

MovementInSpace() public method

Returns the movement of the touch between the current and previous location.
public MovementInSpace ( DisplayObject space ) : Point
space Sparrow.Display.DisplayObject
return Sparrow.Geom.Point

PreviousLocationInSpace() public method

Converts the previous location of a touch to the local coordinate system of a display object.
public PreviousLocationInSpace ( DisplayObject space ) : Point
space Sparrow.Display.DisplayObject
return Sparrow.Geom.Point