in3Utils.geoTrans.rotate

rotate(locationPoints, theta, deg=True)[source]

rotate a vector provided as start and end point with theta angle rotation counter-clockwise

Parameters
  • locationPoints (list) – list of lists with x,y coordinate of start and end point of a line

  • theta (float) – rotation angle of the vector from start point to end point - degree default

  • deg (bool) – if true theta is converted to rad from degree

Returns

rotatedLine – list of lists of x,y coordinates of start and end point of rotated vector

Return type

list