Action:
|
Determines if a scheme-object is a curve.
|
|
Filename:
|
kern/kern_scm/qgom_scm.cxx
|
|
Syntax:
|
(curve? object)
|
|
Arg Types:
|
object
|
scheme-object
|
|
Returns:
|
boolean
|
|
Description:
|
This extension returns
#t if the object is one of the types of curves: circular, elliptical, or linear. Otherwise, it returns
#f.
|
|
|
object specifies the
scheme-object that has to be queried for a curve.
|
|
Example:
|
; curve?
|
|
; Create a circular curve.
|
|
(define curve1 (curve:circular (position 0 0 0) 25))
|
|
;; curve1
|
|
; Determine if the entity is a curve.
|
|
(curve? curve1)
|
|
;; #t
|