Direction Constructors Functions

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

This page discusses:

direction

Signature

Vector->Direction (): Direction

Arguments

NameInput / OutputRequired?TypeComment
InYesVector Converts Knowledge objects into GSD Features to be able to exploit geometrically computed data in GSD.

ReturnType

Direction

Example

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

direction

Signature

Direction->Vector (): Vector

Arguments

NameInput / OutputRequired?TypeComment
InYesDirection Converts GSD Features into Knowledge objects to be able to exploit mathematically their geometrical features in the Knowledge environment.

ReturnType

Vector

Example

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

direction

Signature

direction(Line) : Direction

Arguments

NameInput / OutputRequired?TypeComment
InYesLineCreates a direction from a line.

ReturnType

Direction

Example

Geometrical Set.1\Point.1 = pointtangent 
(Geometrical Set.1\Spline.1, direction (Geometrical Set.1\line3))

direction

Signature

direction(Plane) : Direction

Arguments

NameInput / OutputRequired?TypeComment
InYesPlaneCreates a direction from a plane.

ReturnType

Direction

Example

Geometrical Set.1\Point.1 = pointtangent 
(Geometrical Set.1\Spline.1, direction (`zx plane`))

direction

Signature

direction(x : LENGTH, y : LENGTH, z : LENGTH) : Direction

Arguments

NameInput / OutputRequired?TypeComment
xInYesLENGTHCreates a direction defined by the reference axes origin and the point whose coordinates are specified in the function argument.
yInYesLENGTHCreates a direction defined by the reference axes origin and the point whose coordinates are specified in the function argument.
zInYesLENGTHCreates a direction defined by the reference axes origin and the point whose coordinates are specified in the function argument.

ReturnType

Direction

Example

Geometrical Set.1\Point.1 = pointtangent 
(Geometrical Set.1\Spline.1, direction (10mm,10mm,10mm))