Kiwi.Geom.Ray Class
Represents a halfline. The ray starts at the first point and extends infinitely in the direction of the second.
Constructor
Kiwi.Geom.Ray
(
Kiwi.Geom.Ray
-
[x1
-
[y1
-
[x2
-
[y2
Parameters:
-
[x1
Number= 0] x1
-
[y1
Number= 0] y1
-
[x2
Number= 0] x2
-
[y2
Number= 0] y2
Returns:
Kiwi.Geom.Ray:
This Object
Item Index
Methods
clone
(
Kiwi.Geom.Ray
public
-
[output
Makes a copy of this Ray either as a new Ray object or, makes a passed Ray a copy of this one.
Parameters:
-
[output
Kiwi.Geom.Ray= Ray]
Returns:
copyFrom
(
Kiwi.Geom.Ray
public
-
source
Makes this Ray the same as a passed Ray.
Parameters:
-
source
Kiwi.Geom.Ray
Returns:
copyTo
(
Kiwi.Geom.Ray
public
-
target
Makes a passed Ray the same as this Ray object.
Parameters:
-
target
Kiwi.Geom.Ray
Returns:
isPointOnRay
(
Boolean
-
x
-
y
Check if the Ray passes through a point.
Parameters:
-
x
Number -
y
Number
Returns:
Boolean:
objType
()
String
public
The type of this object.
Returns:
String:
setTo
(
Kiwi.Geom.Ray
public
-
x1
-
y1
-
x2
-
y2
Sets the origin and the direction of this Ray.
Parameters:
-
x1
Number -
y1
Number -
x2
Number -
y2
Number
Returns:
toString
()
String
Get a string representation of the ray.
Returns:
String:
Properties
angle
Unknown
public
Get the angle of the ray.
slope
Unknown
public
Get the slope of the ray.
x1
Number
public
The x component of the initial point of the ray
x2
Number
public
The x component of the direction point of the ray
y1
Number
public
The y component of the initial point of the ray
y2
Number
public
The y component of the direction point of the ray