Guide > Geometry > Immutability

Immutability

All 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.

Example

The operation
	p.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:

Data Types for 2D Geometry


Geometry

Advanced Data types for 2-D geometry

Data Types for 3-D Geometry

Geometry Algorithms

GeoWin




Algorithmic Solutions Software GmbH