pub struct GeodesicEquation {
pub metric: String,
pub dimension: usize,
}Expand description
Geodesic equation in a Riemannian manifold: curves minimizing arc length.
Fields§
§metric: StringDescription of the metric tensor g_{ij}.
dimension: usizeDimension of the manifold.
Implementations§
Source§impl GeodesicEquation
impl GeodesicEquation
Sourcepub fn new(dimension: usize) -> Self
pub fn new(dimension: usize) -> Self
Create a new GeodesicEquation for a manifold of given dimension.
Sourcepub fn christoffel_symbols_string(&self) -> String
pub fn christoffel_symbols_string(&self) -> String
Christoffel symbols Γ^k_{ij} = (1/2) g^{kl} (∂i g{jl} + ∂j g{il} - ∂l g{ij}).
Sourcepub fn is_straight_line_in_flat_space(&self) -> bool
pub fn is_straight_line_in_flat_space(&self) -> bool
In flat Euclidean space (g_{ij} = δ_{ij}) the geodesics are straight lines.
Trait Implementations§
Source§impl Clone for GeodesicEquation
impl Clone for GeodesicEquation
Source§fn clone(&self) -> GeodesicEquation
fn clone(&self) -> GeodesicEquation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GeodesicEquation
impl RefUnwindSafe for GeodesicEquation
impl Send for GeodesicEquation
impl Sync for GeodesicEquation
impl Unpin for GeodesicEquation
impl UnsafeUnpin for GeodesicEquation
impl UnwindSafe for GeodesicEquation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more