Kiwi.Geom.IntersectResult Class
A Lightweight object to hold the results of an Intersection. Used in combination with the STATIC methods on the Intersect class.
If you are using the Intersect methods a lot, you may want to consider creating a IntersectResult class a reusing it (by passing it to the methods on the Intersect class) instead of having new IntersectResults created.
Constructor
Kiwi.Geom.IntersectResult
()
Methods
objType
()
String
public
The type of object this is.
Returns:
"IntersectResult"
setTo
-
x1
-
y1
-
[x2=0]
-
[y2=0]
-
[width=0]
-
[height=0]
Sets the coordinates of the points based on the parameters passed.
Parameters:
-
x1
Number -
y1
Number -
[x2=0]
Number optional -
[y2=0]
Number optional -
[width=0]
Number optional -
[height=0]
Number optional
Properties
height
Number
public
[CURRENTLY NOT IN USE]
result
Boolean
public
Holds the result of an Intersection between two geometric items. TRUE means an Intersection did occur and FALSE means not.
Default: false
width
Number
public
[CURRENTLY NOT IN USE]
x
Number
public
Holds the x coordinate of the point in which the Intersection occured. Note: This is only set in the case the TWO geometric items are either Lines or Rays (Line like in function) and a Intersection occured.
x1
Number
public
[CURRENTLY NOT IN USE]
x2
Number
public
[CURRENTLY NOT IN USE]
y
Number
public
Holds the y coordinate of the point in which the Intersection occured. Note: This is only set in the case the TWO geometric items are either Lines or Rays (Line like in function) and a Intersection occured.
y1
Number
public
[CURRENTLY NOT IN USE]
y2
Number
public
[CURRENTLY NOT IN USE]