All Frameworks  Object Hierarchy  This Framework  Previous  Next  Indexes  

Line2D (Object)

IUnknown
  |
  +---IDispatch
    |
    +---CATBaseUnknown
      |
      +---CATBaseDispatch
        |
        +---AnyObject
          |
          +---GeometricElement
            |
            +---Geometry2D
              |
              +---Curve2D
                |
                +---Line2D
 


Class defining a line in 2D Space.

Method Index

GetDirection
Returns the unit-vector pointing in the direction of the line.
GetOrigin
Returns a point lying on the line
SetData
Modifies the caracteristics of the infinite line

Methods


o Sub GetDirection(CATSafeArrayVariant 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
o Sub GetOrigin(CATSafeArrayVariant 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
o Sub SetData(double iX,
double iY,
double iXDirection,
double 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

Copyright © 2003, Dassault Systèmes. All rights reserved.