Geometry

Geometry module.

This module contain geometry utilities.

class uv_align_distribute.geometry.Rectangle(lowest, highest)[source]

Rectangle rappresentation.

Parameters:
  • lowest (mathutils.Vector) – lowest corner
  • highest – highest corner
bottom()[source]

Return the bottom edge.

Returns:bottom edge
Return type:int
bottomLeft()[source]

Return the bottom left corner.

Returns:bottom left
Return type:mathutils.Vector
bottomRight()[source]

Return the bottom right corner.

Returns:top bottom right
Return type:mathutils.Vector
center()[source]

Return the bounding box center.

Returns:rectangle center
Return type:mathutils.Vector
left()[source]

Return the left edge.

Returns:left edge
Return type:int
right()[source]

Return the right edge.

Returns:right edge
Return type:int
top()[source]

Return the top.

Returns:top edge
Return type:int
topLeft()[source]

Return the top left corner.

Returns:top left corner
Return type:mathutils.Vector
topRight()[source]

Return the top right corner.

Returns:top right corner
Return type:mathutils.Vector
class uv_align_distribute.geometry.Size(width, height)[source]

Rappresentation of size.

Parameters:
  • width (float) – width.
  • height (float) – height.