src.Vec.geom package

Submodules

src.Vec.geom.geom module

src.Vec.geom.geom.are_collinear(a: src.Vec.VecSE2.VecSE2, b: src.Vec.VecE2.VecE2, c: src.Vec.VecE2.VecE2, tol: float = 1e-08)[source]
src.Vec.geom.geom.cross_product(a: src.Vec.VecE2.VecE2, b: src.Vec.VecE2.VecE2)[source]
src.Vec.geom.geom.dot_product(a: src.Vec.VecE2.VecE2, b: src.Vec.VecE2.VecE2)[source]
src.Vec.geom.geom.inertial2body(point, reference)[source]

Convert a point in an inertial cartesian coordinate frame to be relative to a body’s coordinate frame The body’s position is given relative to the same inertial coordinate frame

src.Vec.geom.geom.sign(a)[source]

src.Vec.geom.line_segment module

class src.Vec.geom.line_segment.LineSegment(A: src.Vec.VecE2.VecE2, B: src.Vec.VecE2.VecE2)[source]

Bases: object

line segment class

src.Vec.geom.line_segment.get_polar_angle(seg: src.Vec.geom.line_segment.LineSegment)[source]

src.Vec.geom.projectile module

class src.Vec.geom.projectile.Projectile(pos: src.Vec.VecSE2.VecSE2, v: float)[source]

Bases: object

src.Vec.geom.projectile.get_intersection_time(A: src.Vec.geom.projectile.Projectile, seg: src.Vec.geom.line_segment.LineSegment)[source]

how long does it take for the Projectile to hit a given LineSegment :param A: Projectile object :param seg: LineSegment :return: the time

Module contents