global_to_local#

concreteproperties.utils.global_to_local(theta: float, x: float, y: float) tuple[float, float][source]#

Calculates local coorindates.

Determines the local coordinates of the global point (x, y) given local axis angle theta.

Parameters:
  • theta (float) – Angle (in radians) the local axis makes with the horizontal axis (\(-\pi \leq \theta \leq \pi\))

  • x (float) – x-coordinate of the point in the global axis

  • y (float) – y-coordinate of the point in the global axis

Returns:

Local axis coordinates (u, v)

Return type:

tuple[float, float]