geo2d.utils.cached_property

geo2d.utils.cached_property(func)[source]

Simple decorator for caching class properties.

Parameters :

func : class method

The class method to perform caching on. It has to be part of a class otherwise this won’t make sense.

Returns :

out : function

The function decorated with property decorator (only for getting, not setting).

Previous topic

geo2d.utils.rotated

This Page