Line2D (Object)

Class defining a line in 2D Space.

Methods


Sub GetDirection( oDirection)
Returns the unit-vector pointing in the direction of the line.
Parameters:
oDirection[0]
The X Coordinate of the unit vector pointing in the direction of the line
oDirection[1]
The Y Coordinate of the unit vector pointing in the direction of the line
Sub GetOrigin( oOrigin)
Returns a point lying on the line
Parameters:
oPoint[0]
The X Coordinate of a point lying on the line
oPoint[1]
The Y Coordinate of a point lying on the line
Sub SetData( iX, iY, iXDirection, iYDirection)
Modifies the caracteristics of the infinite line
Parameters:
iX
The X Coordinate of a point lying on the line
iY
The Y Coordinate of a point lying on the line
iXDirection
The X Coordinate of the unit vector pointing in the direction of the line
iYDirection
The Y Coordinate of the unit vector pointing in the direction of the line