Skip to main content

skew_point_yup

Function skew_point_yup 

Source
pub fn skew_point_yup(x: f32, y: f32, tan_x: f32, tan_y: f32) -> (f32, f32)
Expand description

Shears one local-space vertex about the pivot origin, in the part’s Y-up authored space — callers apply the Y-down flip afterwards, exactly as they do for the 4-corner Vertex deform, so the sign matches that path. tan_x / tan_y come from skew_local_tans. This is the same shear the world matrix applies in propagate mode: (x, y) -> (x + tan_x·y, y + tan_y·x).