Interface SpacetimeMetric
- All Superinterfaces:
MetricSpace<Vector4D>, Set<Vector4D>, TopologicalSpace<Vector4D>
- All Known Implementing Classes:
KerrMetric, SchwarzschildMetric
Interface representing a metric tensor field in spacetime.
Implementations define how the metric varies with coordinates. *
Reference:
Fréchet, M. (1906). Sur quelques points du calcul fonctionnel. Rendiconti del Circolo Matematico di Palermo.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleancontainsPoint(Vector4D point) Checks if this space contains the given point.default StringReturns a human-readable description of this set.default RealCalculates approximate spacetime interval using metric at midpoint.getChristoffelSymbols(Vector4D point) Default implementation returns null.getMetricTensor(Vector4D point) Calculates the covariant metric tensor $g_{\mu\nu}$ at the given event coordinates.default booleanisClosed()Checks if this set is closed in the topology.default booleanisOpen()Checks if this set is open in the topology.
-
Method Details
-
getMetricTensor
-
getChristoffelSymbols
-
distance
Calculates approximate spacetime interval using metric at midpoint.For accurate geodesic distance in curved spacetime, use numerical integration. This provides a first-order approximation suitable for nearby events.
- Specified by:
distancein interfaceMetricSpace<Vector4D>- Parameters:
a- the first pointb- the second point- Returns:
- the distance between a and b
-
containsPoint
Description copied from interface:TopologicalSpaceChecks if this space contains the given point.Named containsPoint to avoid erasure conflict with Set.contains.
- Specified by:
containsPointin interfaceTopologicalSpace<Vector4D>- Parameters:
point- the point to check- Returns:
- true if the point is in this space
-
isOpen
default boolean isOpen()Description copied from interface:TopologicalSpaceChecks if this set is open in the topology.- Specified by:
isOpenin interfaceTopologicalSpace<Vector4D>- Returns:
- true if this is an open set
-
isClosed
default boolean isClosed()Description copied from interface:TopologicalSpaceChecks if this set is closed in the topology.- Specified by:
isClosedin interfaceTopologicalSpace<Vector4D>- Returns:
- true if this is a closed set
-
description
Description copied from interface:SetReturns a human-readable description of this set.Examples:
- "â„ (Real Numbers)"
- "ℤ/12ℤ (Integers modulo 12)"
- "{1, 2, 3, 4, 5}"
- Specified by:
descriptionin interfaceSet<Vector4D>- Returns:
- a description of this set
-