Action:
|
Gets the gvector of the major axis of an elliptical curve or edge.
|
|
Filename:
|
kern/kern_scm/crv_scm.cxx
|
|
Syntax:
|
(arc:major-axis arc)
|
|
Arg Types:
|
arc
|
elliptical-curve | elliptical-edge
|
|
Returns:
|
gvector
|
|
Description:
|
Returns the gvector of the major axis of an elliptical curve or edge. The gvector is measured from the center position to the starting position of the underlying full curve. If the ellipse has a ratio greater than 1 (major axis to minor axis), then the returned gvector specifies the direction of the ellipse's minor axis.
|
|
|
arc specifies an elliptical-curve or an elliptical-edge.
|
|
Example:
|
; arc:major-axis
|
|
; Create a circular edge.
|
|
(define arc1
|
|
|
(edge:circular
|
|
|
(position 15 25 0) 25 0 185))
|
|
;; arc1
|
|
; Get the gvector of the major axis of the edge.
|
|
(arc:major-axis arc1)
|
|
;; #[gvector 25 0 0]
|