Function veloren_voxygen::scene::debug::box_along_line
source · fn box_along_line(
line: LineSegment3<f32>,
width: f32,
height: f32,
color: [f32; 4],
mesh: &mut Mesh<DebugVertex>,
)
Expand description
If (q, r) is the given line
, append the following mesh to mesh
, where
the distance between a-b is width
and b-d is height
:
e—–f
/| /|
/ | r/ |
/ | / |
/ g-/– h
/ / / /
a—–b /
| / | /
| /q | /
|/ |/
c—–d