Apache Flex (FlexJS) 0.7.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
PointUtils

Package | org.apache.flex.utils
Class | public class PointUtils
Inheritance | PointUtils Object

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The PointUtils class is a collection of static functions that convert Points between coordinate spaces.

Public Methods

| Method | Defined By
--- | --- | ---
|  | globalToLocal(pt:Point, local:Object):Point [static] Converts a point from global coordinates to local coordinates | PointUtils
|  | localToGlobal(pt:Point, local:Object):Point [static] Converts a point from local coordinates to global coordinates | PointUtils

Method Detail

globalToLocal | () | method

`public static function globalToLocal(pt:Point, local:Object):Point`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Converts a point from global coordinates to local coordinates

Parameters

| `pt:Point` — The point being converted.
| `local:Object` — The component used as reference for the conversion.

Returns

| `Point`

localToGlobal | () | method |

`public static function localToGlobal(pt:Point, local:Object):Point`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Converts a point from local coordinates to global coordinates

Parameters

| `pt:Point` — The point being converted.
| `local:Object` — The component used as reference for the conversion.

Returns

| `Point`

Mon Sep 5 2016, 07:19 AM -07:00