Skip to content

Commit

Permalink
test for nonzero when getting (shape ...) keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
bvds committed Mar 11, 2009
1 parent 7eb14fd commit 921ce82
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions KB/vectors.cl
Expand Up @@ -1893,6 +1893,7 @@
(defoperator I-rod-cm-contains (?sought)
:preconditions
((shape ?b rod :center ?cm . ?rest)
(test ?cm)
;; could be generalized to include time:
(any-member ?sought ( (moment-of-inertia ?b :axis ?cm)
(mass ?b)
Expand All @@ -1918,6 +1919,7 @@
(defoperator I-rod-end-contains (?sought)
:preconditions
((shape ?b rod :end ?end . ?rest)
(test ?end)
;; this could be generalized to include time
(any-member ?sought ( (moment-of-inertia ?b :axis ?end)
(mass ?b)
Expand Down Expand Up @@ -1949,6 +1951,7 @@
(defoperator I-hoop-cm-contains (?sought)
:preconditions
((shape ?b hoop :center ?cm)
(test ?cm)
;; this could be generalized to include time
(any-member ?sought ((moment-of-inertia ?b :axis ?cm)
(mass ?b)
Expand All @@ -1974,6 +1977,7 @@
(defoperator I-disk-cm-contains (?sought)
:preconditions
((shape ?b disk :center ?cm)
(test ?cm)
;; this could be generalized to include time
(any-member ?sought ((moment-of-inertia ?b :axis ?cm)
(mass ?b)
Expand All @@ -1994,6 +1998,7 @@
(defoperator I-rect-cm-contains (?sought)
:preconditions
((shape ?b rectangle :center ?cm)
(test ?cm)
;; this could be generalized to include time
(any-member ?sought ( (moment-of-inertia ?b :axis ?cm)
(mass ?b)
Expand Down

0 comments on commit 921ce82

Please sign in to comment.