| Package | com.rubenswieringa.geom |
| Class | public class InfiniteLine |
| Subclasses | Line |
| Property | Defined by | ||
|---|---|---|---|
| horizontal : Boolean
Indicates whether or not this InfiniteLine instance is horizontal.
| InfiniteLine | ||
| vertical : Boolean
Indicates whether or not this InfiniteLine instance is vertical.
| InfiniteLine | ||
| xCoefficient : Number
Value with which the y-position of this InfiniteLine increases, relative to that with which the x-position increases.
| InfiniteLine | ||
| xIntersection : Number
The x-position of the coordinate where this InfiniteLine crosses the x-axis (and consequently the y-position will be equal to zero).
| InfiniteLine | ||
| yCoefficient : Number
Value with which the x-position of this InfiniteLine increases, relative to that with which the y-position increases.
| InfiniteLine | ||
| yIntersection : Number
The y-position of the coordinate where this InfiniteLine crosses the y-axis (and consequently the x-position will be equal to zero).
| InfiniteLine | ||
| Method | Defined by | ||
|---|---|---|---|
|
InfiniteLine(xIntersection:Number = 0, xCoefficient:Number = 1)
Constructor.
| InfiniteLine | ||
|
clone():*
Returns a cloned instance of this InfiniteLine.
| InfiniteLine | ||
|
containsPoint(point:Point, round:Boolean = true):Boolean
Returns true if the provided Point is on this InfiniteLine.
| InfiniteLine | ||
|
createFromPoints(a:Point, b:Point):InfiniteLine
[static]
Creates an InfiniteLine at the hand of two Points.
| InfiniteLine | ||
|
createFromX(xIntersection:Number, xCoefficient:Number):InfiniteLine
[static]
Creates an InfiniteLine instance at the hand of an x-intersection and an x-coefficient.
| InfiniteLine | ||
|
createFromY(yIntersection:Number, yCoefficient:Number):InfiniteLine
[static]
Creates an InfiniteLine instance at the hand of an y-intersection and an y-coefficient.
| InfiniteLine | ||
|
equals(line:InfiniteLine, round:Boolean = true):Boolean
Returns true if the intersection-points and coefficients of both InfiniteLine instances are equal.
| InfiniteLine | ||
|
getAngle():Number
Returns the angle of this InfiniteLine with the x-axis.
| InfiniteLine | ||
|
[static]
Returns a Point instance that represents the coordinate at which two InfiniteLine instances intersect.
| InfiniteLine | ||
|
getPointByX(x:Number):Point
Return a Point on this InfiniteLine where the x-position equals the specified value.
| InfiniteLine | ||
|
getPointByY(y:Number):Point
Return a Point on this InfiniteLine where the y-position equals the specified value.
| InfiniteLine | ||
|
isParallelTo(line:InfiniteLine, round:Boolean = true):Boolean
Returns true if the provided InfiniteLine instance is parallel to this InfiniteLine.
| InfiniteLine | ||
|
syncToPoints(a:Point, b:Point):void
Synchronizes this InfiniteLine instance to contain two Points.
| InfiniteLine | ||
|
toString():String
The String representation of this InfiniteLine instance.
| InfiniteLine | ||
| horizontal | property |
horizontal:Boolean [read-write]Indicates whether or not this InfiniteLine instance is horizontal.
Implementation public function get horizontal():Boolean
public function set horizontal(value:Boolean):void
See also
| vertical | property |
vertical:Boolean [read-write]Indicates whether or not this InfiniteLine instance is vertical.
Implementation public function get vertical():Boolean
public function set vertical(value:Boolean):void
See also
| xCoefficient | property |
xCoefficient:Number [read-write]Value with which the y-position of this InfiniteLine increases, relative to that with which the x-position increases.
Implementation public function get xCoefficient():Number
public function set xCoefficient(value:Number):void
See also
| xIntersection | property |
xIntersection:Number [read-write]The x-position of the coordinate where this InfiniteLine crosses the x-axis (and consequently the y-position will be equal to zero).
Implementation public function get xIntersection():Number
public function set xIntersection(value:Number):void
See also
| yCoefficient | property |
yCoefficient:Number [read-write]Value with which the x-position of this InfiniteLine increases, relative to that with which the y-position increases.
Implementation public function get yCoefficient():Number
public function set yCoefficient(value:Number):void
See also
| yIntersection | property |
yIntersection:Number [read-write]The y-position of the coordinate where this InfiniteLine crosses the y-axis (and consequently the x-position will be equal to zero).
Implementation public function get yIntersection():Number
public function set yIntersection(value:Number):void
See also
| InfiniteLine | () | constructor |
public function InfiniteLine(xIntersection:Number = 0, xCoefficient:Number = 1)Constructor.
ParametersxIntersection:Number (default = 0) |
|
xCoefficient:Number (default = 1) |
See also
| clone | () | method |
public function clone():*Returns a cloned instance of this InfiniteLine.
Returns* — InfiniteLine
|
| containsPoint | () | method |
public function containsPoint(point:Point, round:Boolean = true):BooleanReturns true if the provided Point is on this InfiniteLine.
Parameterspoint:Point — Point instance representing a coordinate.
|
|
round:Boolean (default = true) — Boolean indicating whether or not to round values before making equations.
|
Boolean |
See also
| createFromPoints | () | method |
public static function createFromPoints(a:Point, b:Point):InfiniteLineCreates an InfiniteLine at the hand of two Points.
Parametersa:Point — Point
|
|
b:Point — Point
|
InfiniteLine —
InfiniteLine
|
See also
| createFromX | () | method |
public static function createFromX(xIntersection:Number, xCoefficient:Number):InfiniteLineCreates an InfiniteLine instance at the hand of an x-intersection and an x-coefficient. Note that this method is exactly the same as the class its constructor.
ParametersxIntersection:Number — x-position of this InfiniteLine's intersection-point with the x-axis.
|
|
xCoefficient:Number — x-coefficient.
|
InfiniteLine —
InfiniteLine
|
See also
| createFromY | () | method |
public static function createFromY(yIntersection:Number, yCoefficient:Number):InfiniteLineCreates an InfiniteLine instance at the hand of an y-intersection and an y-coefficient.
ParametersyIntersection:Number — y-position of this InfiniteLine's intersection-point with the y-axis.
|
|
yCoefficient:Number — y-coefficient.
|
InfiniteLine —
InfiniteLine
|
See also
| equals | () | method |
public function equals(line:InfiniteLine, round:Boolean = true):BooleanReturns true if the intersection-points and coefficients of both InfiniteLine instances are equal.
Parametersline:InfiniteLine — InfiniteLine
|
|
round:Boolean (default = true) — Boolean indicating whether or not to round values before making equations.
|
Boolean — Boolean
|
| getAngle | () | method |
public function getAngle():NumberReturns the angle of this InfiniteLine with the x-axis.
ReturnsNumber — Angle in radians.
|
| getIntersection | () | method |
public static function getIntersection(line1:InfiniteLine, line2:InfiniteLine):PointReturns a Point instance that represents the coordinate at which two InfiniteLine instances intersect. Many thanks to Arno van Oordt for taking the time to explain the concept of intersection to me, check out his blog at http://blog.justgreat.nl
Parametersline1:InfiniteLine — InfiniteLine
|
|
line2:InfiniteLine — InfiniteLine
|
Point — A Point instance if intersections occurs, null of otherwise.
|
| getPointByX | () | method |
public function getPointByX(x:Number):PointReturn a Point on this InfiniteLine where the x-position equals the specified value.
Parametersx:Number |
Point — Point
|
See also
| getPointByY | () | method |
public function getPointByY(y:Number):PointReturn a Point on this InfiniteLine where the y-position equals the specified value.
Parametersy:Number |
Point — Point
|
See also
| isParallelTo | () | method |
public function isParallelTo(line:InfiniteLine, round:Boolean = true):BooleanReturns true if the provided InfiniteLine instance is parallel to this InfiniteLine.
Parametersline:InfiniteLine — InfiniteLine
|
|
round:Boolean (default = true) — Boolean indicating whether or not to round values before making equations.
|
Boolean — Boolean
|
| syncToPoints | () | method |
public function syncToPoints(a:Point, b:Point):voidSynchronizes this InfiniteLine instance to contain two Points.
Parametersa:Point — First Point.
|
|
b:Point — Second Point.
|
| toString | () | method |
public function toString():StringThe String representation of this InfiniteLine instance.
ReturnsString — String
|