MCPcopy Create free account
hub / github.com/PerroEngine/Perro / line

Method line

perro_source/api_modules/perro_resource_api/src/sub_apis/draw_2d.rs:51–53  ·  view source on GitHub ↗
(&self, start: Vector2, end: Vector2, color: [f32; 4], thickness: f32)

Source from the content-addressed store, hash-verified

49
50 #[inline]
51 pub fn line(&self, start: Vector2, end: Vector2, color: [f32; 4], thickness: f32) {
52 self.push(DrawShape2D::line(end, color.into(), thickness), start);
53 }
54
55 #[inline]
56 pub fn polyline(&self, points: Vec<Vector2>, color: [f32; 4], thickness: f32) {

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected