KPG1_ASOFF

Finds a position offset by a given distance from one position towards another position

Description:

This routine returns the co-ordinates of a position which is a given distance along a curve joining one position to another position. The curve can be either be the geodesic or Euclidean curve joining the two points.

Invocation

CALL KPG1_ASOFF( FRAME, DIM, NAX, POS, I1, I2, GEO, DIS, OFFPOS, STATUS )

Arguments

FRAME = INTEGER (Given)
An AST pointer to the Frame. Only accessed if GEO is .TRUE.
DIM = INTEGER (Given)
The size of the first dimension of the POS array.
NAX = INTEGER (Given)
The number of axes in the Frame.
POS( DIM, NAX ) = DOUBLE PRECISION (Given)
An array holding the co-ordinates at DIM positions within the supplied Frame.
I1 = INTEGER (Given)
The index of the first position, in the range 1 to DIM.
I2 = INTEGER (Given)
The index of the second position, in the range 1 to DIM.
GEO = LOGICAL (Given)
Is the geodesic distance required?
DIS = DOUBLE PRECISION (GIVEN)
The distance to move away from position I1 towards position I2.
OFFPOS( NAX ) = DOUBLE PRECISION (Returned)
The returned position.
STATUS = INTEGER (Given)
Global status value.