pub trait ConformallyFlat: Space {
// Required method
fn conformal_factor(&self, p: Vec3) -> f32;
// Provided methods
fn scalar_curvature(&self, p: Vec3) -> f32 { ... }
fn conformal_log_half(&self, p: Vec3) -> f32 { ... }
fn conformal_log_half_gradient(&self, p: Vec3) -> Vec3 { ... }
}Expand description
g_ij(p) = f(p)·δ_ij in the chart Space::Point carries, not in some other chart.
Required Methods§
Sourcefn conformal_factor(&self, p: Vec3) -> f32
fn conformal_factor(&self, p: Vec3) -> f32
May return f32::INFINITY at the chart boundary.
Provided Methods§
Sourcefn scalar_curvature(&self, p: Vec3) -> f32
fn scalar_curvature(&self, p: Vec3) -> f32
R = −(4/f)·[∇²φ + |∇φ|²/2]; the default is finite-difference.