view:right
List of: Scheme Extensions
Subjects: Viewing
Contents: Scheme Support

Action: Gets the right vector of a view.

Filename: scm/scmext/view_scm.cxx

Syntax: (view:right [view=active])

Arg Types: view view

Returns: gvector

Description: This extension returns the unitized gvector that points toward the right side of the view. This corresponds to the x-axis of the view coordinate system. The gvectors returned from the operations view:out, view:right, and view:up form a right-handed orthonormal triple. Each is the cross-product of the other two. The view:out vector is always perpendicular to the screen. After the model has been reoriented, this command determines the x-axis relationship to the model.


The argument view specifies the specific view to get the handle from. If not specified, the active view is used.

Limitations: This extension is available on all platforms, but produces results only on NT using OpenGL.

Example: ; view:right

; Get the right vector for a view.

(view:right)

;; #[gvector 0.894427190999916 0.447213595499958 0]
PDF/SCM/04SC.PDF
HTM/DATA/SCM/SCM/04SC/0162.HTM