Members
(constant) arc
    Function to create arc equivalent to "new" constructor
- Source:
 
(constant) CCW :boolean
    Global constant CCW defines counterclockwise direction of arc
- Source:
 
Type:
- 
            
boolean 
(constant) CW :boolean
    Global constant CW defines clockwise direction of arc
- Source:
 
Type:
- 
            
boolean 
DP_TOL :number
    Floating point comparison tolerance.
Default value is 0.000001 (10e-6)
- Source:
 
Type:
- 
            
number 
(constant) line
    Function to create line equivalent to "new" constructor
- Source:
 
(constant) matrix
    Function to create matrix equivalent to "new" constructor
- Source:
 
(constant) ORIENTATION :Object
    Defines orientation for face of the polygon: clockwise, counterclockwise
or not orientable in the case of self-intersection
- Source:
 
Type:
- 
            
Object 
(constant) point
    Function to create point equivalent to "new" constructor
- Source:
 
(constant) vector
    Function to create vector equivalent to "new" constructor
- Source:
 
Methods
EQ(x, y) → {boolean}
    Returns *true* if two values are equal up to DP_TOL
- Source:
 
Parameters:
| Name | Type | Description | 
|---|---|---|
x | 
            
            
            
                
number
            
             | 
            
            
            |
y | 
            
            
            
                
number
            
             | 
            
            
            
Returns:
- Type:
 - 
        
boolean 
EQ_0(x, y) → {boolean}
    Returns *true* if value comparable to zero
- Source:
 
Parameters:
| Name | Type | Description | 
|---|---|---|
x | 
            
            
            
                
number
            
             | 
            
            
            |
y | 
            
            
            
                
number
            
             | 
            
            
            
Returns:
- Type:
 - 
        
boolean 
GE(x, y) → {boolean}
    Returns *true* if first argument greater than or equal to second argument up to DP_TOL
- Source:
 
Parameters:
| Name | Type | Description | 
|---|---|---|
x | 
            
            
            
                
number
            
             | 
            
            
            |
y | 
            
            
            
                
number
            
             | 
            
            
            
Returns:
- Type:
 - 
        
boolean 
getTolerance() → {number}
    Get floating point comparison tolerance
- Source:
 
Returns:
- Type:
 - 
        
number 
GT(x, y) → {boolean}
    Returns *true* if first argument greater than second argument up to DP_TOL
- Source:
 
Parameters:
| Name | Type | Description | 
|---|---|---|
x | 
            
            
            
                
number
            
             | 
            
            
            |
y | 
            
            
            
                
number
            
             | 
            
            
            
Returns:
- Type:
 - 
        
boolean 
isWktString(str) → {boolean}
    Return true if given string starts with one of WKT tags and possibly contains WKT string,
- Source:
 
Parameters:
| Name | Type | Description | 
|---|---|---|
str | 
            
            
Returns:
- Type:
 - 
        
boolean 
LE(x, y) → {boolean}
    Returns *true* if first argument less than or equal to second argument up to DP_TOL
- Source:
 
Parameters:
| Name | Type | Description | 
|---|---|---|
x | 
            
            
            
                
number
            
             | 
            
            
            |
y | 
            
            
            
                
number
            
             | 
            
            
            
Returns:
- Type:
 - 
        
boolean 
LT(x, y) → {boolean}
    Returns *true* if first argument less than second argument up to DP_TOL
- Source:
 
Parameters:
| Name | Type | Description | 
|---|---|---|
x | 
            
            
            
                
number
            
             | 
            
            
            |
y | 
            
            
            
                
number
            
             | 
            
            
            
Returns:
- Type:
 - 
        
boolean 
parseWKT(str) → {Point|Array.<Point>|Multiline|Array.<Multiline>|Polygon|Array.<Shape>|null}
    Convert WKT string to array of Flatten shapes.
- Source:
 
Parameters:
| Name | Type | Description | 
|---|---|---|
str | 
            
            
setTolerance(tolerance)
    Set new floating point comparison tolerance
- Source:
 
Parameters:
| Name | Type | Description | 
|---|---|---|
tolerance | 
            
            
            
                
number
            
             |