direction
direction (origin point)
Creates a direction defined by the current axis system's origin and the point whose coordinates are specified in the function's arguments.
Signature
direction (x: Length, y: Length, z: Length): Direction
Inputs
- x(LENGTH): abscissa of the point that will be considered, in addition to the current axis system's origin, to compute the direction
- y(LENGTH): ordinate of the point that will be considered, in addition to the current axis system's origin, to compute the direction
- z(LENGTH): applicate of the point that will be considered, in addition to the current axis system's origin, to compute the direction
Returned Value
- Direction: direction defined by the current axis system's origin and the point whose coordinates are specified in the function's arguments.
Sample
let dCoord (Direction) set dCoord = direction(10mm, 20mm, 30mm)
direction (line)
Creates a direction from a line.
Inputs
- (Line): line whose direction will define the result.
Returned Value
- Direction: direction equal to the input argument's direction.
Sample
PartBody\Point.1 = point(10mm, 0mm, 0mm) PartBody\Point.2 = point(-10mm, 0mm, 0mm) PartBody\Line.1 = line(PartBody\Point.1, PartBody\Point.2) let dLine (Direction) set dLine = direction(PartBody\Line.1)