Expand description
Spacetime diagrams: Minkowski, Penrose, worldlines, causal structure.
Structs§
- Minkowski
Diagram - Minkowski diagram containing events and worldlines.
- Penrose
Diagram - Penrose diagram: conformal compactification of spacetime.
- Spacetime
Event - An event in spacetime.
- Spacetime
Renderer - Spacetime renderer for Minkowski diagrams.
- Worldline
- A worldline: a sequence of spacetime events.
Functions§
- boost_
diagram - Lorentz-transform all events in a diagram.
- causal_
structure - Compute the causal structure matrix. Returns a matrix where entry [i][j] is true if event i can causally influence event j.
- invariant_
interval - Compute the invariant interval between two events.
- is_
lightlike - Check if two events are lightlike (null) separated (ds^2 ~ 0).
- is_
spacelike - Check if two events are spacelike separated (ds^2 < 0).
- is_
timelike - Check if two events are timelike separated (ds^2 > 0).
- light_
cone - Compute the light cone from an event. Returns (future_cone, past_cone) as line segments in (x, t) space.
- light_
cone_ grid - Generate a grid of light cones for visualization.
- penrose_
transform - Transform Minkowski coordinates (t, r) to Penrose coordinates. Uses the conformal compactification: T = arctan(t + r) + arctan(t - r) X = arctan(t + r) - arctan(t - r)
- proper_
time_ along_ worldline - Compute proper time along a worldline. tau = integral of sqrt(c^2 dt^2 - dx^2) / c.