SchemeExt:Curve?

From DocR23

Jump to: navigation, search

Contents

Action

Determines if a scheme-object is a curve.

Filename

scm/scmext/kern/qgom_scm.cpp

APIs

None

Syntax

(curve? object)

Argument Types

Argument Scheme Data Type
object scheme-object

Returns

boolean

Description

This extension returns #t if the object is one of the types of curvescircular, elliptical, or linear. Otherwise, it returns #f.

Arguments

  • 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
Personal tools