geometry utils for cocktail