Basic constructor macro for group-literal-affine structures.
(make-group-literal-affine [:x <x>] [:y <y>])
This is the usual way to construct group-literal-affine structures. It simply conses together a structure with the specified fields.
This macro generates a new group-literal-affine structure from scratch. See also change-group-literal-affine, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-group-literal-affine (&rest args) (std::make-aggregate 'group-literal-affine args '((:x) (:y)) 'make-group-literal-affine nil))
Function:
(defun group-literal-affine (x y) (declare (xargs :guard (and (coordinatep x) (coordinatep y)))) (declare (xargs :guard t)) (let ((__function__ 'group-literal-affine)) (declare (ignorable __function__)) (b* ((x (mbe :logic (coordinate-fix x) :exec x)) (y (mbe :logic (coordinate-fix y) :exec y))) (cons :affine (list x y)))))