shape now has shape_get_points for getting the List of points
This commit is contained in:
parent
d76f9a0af9
commit
1f56608950
|
@ -141,6 +141,10 @@ void shape_insert_point(Shape* self, size_t at, Vector point) {
|
|||
list_insert(&self->points, &point, at);
|
||||
}
|
||||
|
||||
List* shape_get_points(Shape* self) {
|
||||
return &self->points;
|
||||
}
|
||||
|
||||
Vector shape_remove_point(Shape* self, size_t at) {
|
||||
Vector point = *list_at_as(Vector, &self->points, at);
|
||||
list_erase(&self->points, at);
|
||||
|
|
Loading…
Reference in a new issue