Direction Constructors Functions

This function lets you define the formula for direction and axis system constructors.

This page discusses:

direction

Creates a 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.

Signature

direction (Line): Direction

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)

direction (plane)

Creates a direction from a plane.

Signature

direction(Plane): Direction

Inputs

  • (Plane): plane whose normal will define the result.

Returned Value

  • Direction: direction equal to the input argument's normal.

Sample

let dPlane (Direction)
set dPlane = direction(`xy plane`)

Vector

Converts Knowledge objects into GSD Features to be able to geometrically exploit in GSD computed data.

Signature

Vector->Direction (): Direction

Sample

let d (Direction)
let v (Vector)
let dd (Direction)
set d = direction(10mm,20mm,30mm)
set v = d->Vector()
set dd = v->Direction()