Action:
|
Gets the projection of a position onto a plane.
|
|
Filename:
|
kern/kern_scm/pos_scm.cxx
|
|
Syntax:
|
(position:project-to-plane position
|
|
|
plane-pos plane-normal)
|
|
Arg Types:
|
position
|
position
|
|
plane-pos
|
position
|
|
plane-normal
|
gvector
|
|
Returns:
|
position
|
|
Description:
|
plane-pos and
plane-normal together specify the plane. This extension returns the
position
on the plane.
|
|
|
position specifies the position to project.
|
|
|
plane-pos specifies a position on the plane.
|
|
|
plane-normal specifies a gvector defining the plane normal.
|
|
Example:
|
; position:project-to-plane
|
|
; Project a position onto a plane.
|
|
(position:project-to-plane (position 0 0 0)
|
|
|
(position 25 25 25) (gvector 1 0 0))
|
|
;; #[position 25 0 0]
|