pub struct Chart {
pub normal: Vec3,
pub tangent_s: Vec3,
pub tangent_t: Vec3,
pub axis: usize,
pub sign: f64,
}Expand description
One cube-face chart: direction(s, t) = normal + s·tangent_s + t·tangent_t,
with tangent_s × tangent_t = normal, so ∂p/∂s × ∂p/∂t points OUT of the
sphere everywhere on the chart.
Fields§
§normal: Vec3§tangent_s: Vec3§tangent_t: Vec3§axis: usizeBasis axis the chart faces along, 0..3.
sign: f64+1 or -1: which end of that axis.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Chart
impl RefUnwindSafe for Chart
impl Send for Chart
impl Sync for Chart
impl Unpin for Chart
impl UnsafeUnpin for Chart
impl UnwindSafe for Chart
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