Skip to main content

compute_local_vertices

Function compute_local_vertices 

Source
pub fn compute_local_vertices(
    size: (f32, f32),
    pivot: (f32, f32),
    pivot_offset: (f32, f32),
    flip: (bool, bool),
    deform: Option<(&[f32; 4], &[f32; 4])>,
) -> ([f32; 5], [f32; 5])
Expand description

Computes the local vertices for a part, including pivot calculation and deformations. Utilizes SIMD via the wide crate for maximum performance. Returns a tuple containing the x and y coordinates of the 5 vertices.