SchemeExt:Edge:circular?
From DocR23
Contents |
Action
Determines if a scheme-object is a circular-edge.
Filename
scm/scmext/kern/qedg_scm.cpp
APIs
None
Syntax
(edge:circular? object)
Argument Types
| Argument | Scheme Data Type |
|---|---|
| object | scheme-object |
Returns
boolean
Description
Returns #t if a scheme-object is a circular-edge; that is, if the curve underlying the edge is a circular ellipse.
Arguments
- object specifies the scheme-object that has to be queried for a circular-edge.
Example
; edge:circular ; Set the view's eye position, target position, and up vector. (define viewset (view:set (position 0 0 -100) (position 0 0 0) (gvector 1 0 0))) ;; viewset ; Create circular edge 1. (define edge1 (edge:circular (position 0 0 0) 30 0 90)) ;; edge1 ; Create circular edge 2. (define edge2 (edge:circular (position 25 25 0) 20)) ;; edge2 ; Create circular edge 3. (define edge3 (edge:circular (position -25 -25 0) 10 180 270)) ;; edge3 ; Create circular edge 4. (define edge4 (edge:circular (position -10 -10 0) 15 90 270)) ;; edge4 (define zoom (zoom-all)) ;; zoom ; OUTPUT Example ;#t