ASCII-GFX  2.0
polygon.h
Go to the documentation of this file.
1 // NCurses polygon rendering
2 // (c) 2022 by Stefan Roettger
3 
4 #pragma once
5 
6 #include "math2d.h"
7 
14 void render_polygon(int n, const Vec2 vertex[],
15  int ch = -1);
16 
18 void render_triangle(const Vec2 &v1, const Vec2 &v2, const Vec2 &v3,
19  int ch = -1);
render_polygon
void render_polygon(int n, const Vec2 vertex[], int ch=-1)
render a polygon with n vertices
Definition: polygon.cpp:123
Vec2
2D vector type
Definition: math2d.h:7
render_triangle
void render_triangle(const Vec2 &v1, const Vec2 &v2, const Vec2 &v3, int ch=-1)
render a triangle with 3 vertices
Definition: polygon.cpp:201
math2d.h