position:project-to-line
List of: Scheme Extensions
Subjects: Mathematics, Projecting
Contents: Kernel

Action: Gets the projection of a position on to a line.

Filename: kern/kern_scm/pos_scm.cxx

Syntax: (position:project-to-line position line-pos line-dir)

Arg Types: position position

line-pos position

line-dir gvector

Returns: position

Description: line-pos and line-dir together define the line. This extension returns the position on the line.


position specifies the position to project.


line-pos specifies a position on the line.


line-dir specifies a gvector defining the direction of the line.

Example: ; position:project-to-line

; Project a position onto a line.

(position:project-to-line (position 10 10 10)


(position 0 0 0) (gvector 0 1 0))

;; #[position 0 10 0]
PDF/KERN/14SCI.PDF
HTM/DATA/KERN/KERN/14SCI/0107.HTM