ImmutabilityAll geometric objects are immutable. There are no operations that change a geometric object, there are only operations to generate new objects from already existing ones.ExampleThe operationp.translate(1,1);returns a point which is obtained from p by translating it by the vector (1,1); it does not change the coordinates
of the point p . Of course, the translated point may be assigned to
p :
p=p.translate(1,1);
|
See also: |