pub struct WavePoint {
pub x: f64,
pub y: f64,
pub rgba: [f32; 4],
}Expand description
One evaluated custom-wave point (var_pp_x/y/r/g/b/a after per-point code). x / y are the VM’s f64:
projectM turns them into clip space as static_cast<float>((x * 2.0 - 1.0) * invAspectX), i.e. the product is also
taken in double (MD2: (float)(x * 2 - 1) * invAspectX, see CompatRules::wave_point_f64_aspect).
Fields§
§x: f64var_pp_x (0..1).
y: f64var_pp_y (0..1, y=1 top).
rgba: [f32; 4]var_pp_r/g/b/a.
Trait Implementations§
Auto Trait Implementations§
impl Forget for WavePoint
impl Freeze for WavePoint
impl Move for WavePoint
impl RefUnwindSafe for WavePoint
impl Send for WavePoint
impl Sync for WavePoint
impl Unpin for WavePoint
impl UnsafeUnpin for WavePoint
impl UnwindSafe for WavePoint
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