butterfly.vectormath module

Calculate anitclockwise angle between two vectors.

butterfly.vectormath.angle_anitclockwise(v1, v2)[source]

Calculate clockwise angle between two 2D vectors.

butterfly.vectormath.cross_product(v1, v2, norm=True)[source]

Calculate cross product of two 3d vector.

butterfly.vectormath.project(p, o, n)[source]

Project a point3d on a plane.

Parameters:
  • p – Point.
  • o – Origin of plane.
  • n – Plane normal.
Returns:

projected point as (x, y, z)