parry3d::transformation::utils

Function push_rectangle_indices

source
pub fn push_rectangle_indices(
    ul: u32,
    ur: u32,
    dl: u32,
    dr: u32,
    out: &mut Vec<[u32; 3]>,
)
Expand description

Given four corner points, pushes to two counterclockwise triangles to out.

ยงArguments:

  • ul - the up-left point.
  • dl - the down-left point.
  • dr - the down-right point.
  • ur - the up-right point.