Skip to main content

ConformallyFlat

Trait ConformallyFlat 

Source
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§

Source

fn conformal_factor(&self, p: Vec3) -> f32

May return f32::INFINITY at the chart boundary.

Provided Methods§

Source

fn scalar_curvature(&self, p: Vec3) -> f32

R = −(4/f)·[∇²φ + |∇φ|²/2]; the default is finite-difference.

Source

fn conformal_log_half(&self, p: Vec3) -> f32

Source

fn conformal_log_half_gradient(&self, p: Vec3) -> Vec3

Implementors§

Source§

impl ConformallyFlat for EuclideanR3

Source§

impl ConformallyFlat for HyperbolicH3

Source§

impl<A, B, F> ConformallyFlat for BlendedSpace<A, B, F>
where A: Space<Point = Vec3, Vector = Vec3> + ConformallyFlat, B: Space<Point = Vec3, Vector = Vec3> + ConformallyFlat, F: BlendingField,