Action:
|
Gets the tangent at the start of an edge or curve.
|
|
Filename:
|
kern/kern_scm/crv_scm.cxx
|
|
Syntax:
|
(curve:start-tan edge-or-curve)
|
|
Arg Types:
|
edge-or-curve
|
curve | edge
|
|
Returns:
|
gvector
|
|
Errors:
|
EDGE with no
CURVE
|
|
Description:
|
Returns the tangent at the start of an edge or curve.
|
|
|
edge-or-curve specifies an edge or a curve.
|
|
Example:
|
; curve:start-tan
|
|
; Create circular edge 1.
|
|
(define edge1
|
|
|
(edge:circular
|
|
|
(position 0 0 0) 15 0 145))
|
|
;; edge1
|
|
; Determine circular edge 1's start tangent vector.
|
|
(curve:start-tan edge1)
|
|
;; #[gvector 0 1 0]
|
|
; Create circular edge 2.
|
|
(define edge2
|
|
|
(edge:circular
|
|
|
(position -5 -10 10) 35 25 245))
|
|
;; edge2
|
|
; Determine circular edge 2's start tangent vector.
|
|
(curve:start-tan edge2)
|
|
;; #[gvector -0.422618261740699 0.90630778703665 0]
|