forked from systemed/potlatch2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProjPoint.as
executable file
·50 lines (43 loc) · 1.04 KB
/
ProjPoint.as
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package com.gradoservice.proj4as
{
public class ProjPoint
{
public var x:Number;
public var y:Number;
public var z:Number;
public function ProjPoint(x:Number,y:Number,z:Number)
{
this.x = x;
this.y = y;
this.z = z;
}
public function clone():ProjPoint
{
return new ProjPoint(this.x, this.y, this.z);
}
/**
* APIMethod: toString
* Return a readable string version of the point
*
* Return:
* {String} String representation of Proj4js.Point object.
* (ex. <i>"x=5,y=42"</i>)
*/
public function toString():String
{
return ("x=" + this.x + ",y=" + this.y);
}
/**
* APIMethod: toShortString
* Return a short string version of the point.
*
* Return:
* {String} Shortened String representation of Proj4js.Point object.
* (ex. <i>"5, 42"</i>)
*/
public function toShortString ():String
{
return (this.x + ", " + this.y);
}
}
}