Ray

Ray class for evtech.

class evtech.ray.Ray(origin, direction, crs)[source]

A class to represent rays in three dimensional space

Parameters
  • origin (class: list) – A 3 elemnt list representing the origin of the ray

  • direction (list) – A 3 element list representing the direction of the ray

  • crs (class: pyproj.CRS) – The CRS for the coordinates of the ray

depth_at_elevation(elevation)[source]

Return the depth at a given elevation

Parameters

elevation (float) – The elevation to get the depth of

intersect_at_elevation(elevation, latlng=True)[source]

Return a three dimensional point intersected at a given elevation

Parameters
  • elevation (float) – The elevation to intersect

  • latlng (bool, optional) – Return the point as lat,lng, elevation, defaults to True

Returns

A 3d point

Return type

numpy.array

point_at_depth(depth)[source]

Return a 3D point at a given depth along the ray

Parameters

depth (float) – The depth along the ray

Returns

A 3d point

Return type

numpy.array