Action:
|
Determines if a scheme-object is a linear curve.
|
|
Filename:
|
kern/kern_scm/qgom_scm.cxx
|
|
Syntax:
|
(curve:linear? object)
|
|
Arg Types:
|
object
|
scheme-object
|
|
Returns:
|
boolean
|
|
Description:
|
This extension returns
#t if the object is a linear curve; otherwise, it returns
#f.
|
|
|
object specifies the
scheme-object that has to be queried for linearity.
|
|
Example:
|
; curve:linear?
|
|
; Create a linear curve, and determine if the
|
|
; resulting object is actually a linear curve.
|
|
(define curve1
|
|
|
(curve:linear (position 0 0 0)
|
|
|
(position 30 30 30)))
|
|
;; curve1
|
|
(curve:linear? curve1)
|
|
;; #t
|
|
(define edge1
|
|
|
(edge:linear (position 0 0 0)
|
|
|
(position 30 30 30)))
|
|
;; edge1
|
|
(curve:linear? edge1)
|
|
;; #f
|