mrdja.geometry.get_parallelogram_2d_vertices

mrdja.geometry.get_parallelogram_2d_vertices(center: List[float], normal1: List[float], normal2: List[float], length1: float, length2: float)[source]

Get vertices of parallelogram, given center, normal vectors, and lengths.

Parameters:
  • center (List[float]) – Center.

  • normal1 (List[float]) – Normal vector 1.

  • normal2 (List[float]) – Normal vector 2.

  • length1 (float) – Length 1.

  • length2 (float) – Length 2.

Returns:

Vertices.

Return type:

List[List[float]]

Example: