Action:
|
Returns a law that is the inverse of the supplied law.
|
|
Filename:
|
kern/kern_scm/law_scm.cxx
|
|
Syntax:
|
(law:inverse in-law)
|
|
Arg Types:
|
in-law
|
law
|
|
Returns:
|
law
|
|
Description:
|
The inverse of a given law is not supported for most laws. The only supported law having an inverse is something derived from the bend law.
|
|
|
in-law specifies a law.
|
|
Example:
|
; law:inverse
|
|
; Create a cylinder
|
|
(define a-part (solid:cylinder (position -20 0 -2)
|
|
|
(position 20 0 -2) 0.75))
|
|
;; a-part
|
|
(entity:bend a-part (position -8 0 -2)
|
|
|
(gvector 0 0 1) (gvector 0 1 0) 4 90)
|
|
;; #[entity 2 1]
|
|
(define e-list (entity:edges a-part))
|
|
;; e-list
|
|
(define law1 (law "cur(EDGE1)"
|
|
|
(list-ref e-list 0)))
|
|
;; law1
|
|
(define law2 (law:inverse law1))
|
|
;; law2
|