loc_along_dir

MDL FunctionComputes the coordinates of a new point.

Description

The new point is located along the direction specified and the distance between the origin and the new point is also given. The coordinates are computed in global reference frame.

Signature

point = loc_along_dir(origin, vector, distance)

Input Arguments

origin
Origin from which the distance is computed.
vector
Specifies the direction of the line that connects the new point and the origin.
distance
The distance between the new point and the origin.

Return Value

point
The point that satisfies the requirement.

Usage

# Compute the point whose cooridnates is (0,3,0)
point = loc_along_dir(  
     origin = Point(0,0,0),
     vector = Vector(0,1,0),
     distance = 3
     )