LienardWiechert
Documentation for LienardWiechert.
LienardWiechert.WorldLineLienardWiechert.minkowski_distance_squaredLienardWiechert.minkowski_dotLienardWiechert.root_linear_interpolation
LienardWiechert.WorldLine — Type
WorldLine{T}(data::Matrix{T})Discrete space-time curve with times t and space coordinates x,y, and z.
Fields
data::Matrix{T}: A 7xN matrix holding with the columns [t, x, y, z, dx/dt, dy/dt, dz/dt]
Examples
julia> bar([1, 2], [1, 2])
1LienardWiechert.minkowski_distance_squared — Method
Calculate the Minkowski distance squared between two spacetime points, (+–-) signature.
LienardWiechert.minkowski_dot — Method
η(r1,r2) = t1t2 - x1x2 - y1y2 - z1z2 with r1 = (t1,x1,y1,z1) and r2 = (t2,x2,y2,z2).
LienardWiechert.root_linear_interpolation — Method
Fit a linear function to two points (x1,t1) and (x2,t2) and return the root (t when x=0).