1 | initial version |
Yes, just represent your points with position vectors. Sage can add vectors to vectors and apply linear transformations to vectors.
For example:
sage: v = vector([1,2,3])
sage: M = matrix([[1,0,0],[0,2,0],[0,1,1]])
sage: M
[1 0 0]
[0 2 0]
[0 1 1]
sage: pt = vector([0,1,0])
sage: v + M*pt # apply affine linear transformation to point `pt`
(1, 4, 4)