From 1f56608950aeaa3941c567a21de23f14106b395a Mon Sep 17 00:00:00 2001 From: Sara Date: Mon, 23 Oct 2023 21:52:38 +0200 Subject: [PATCH] shape now has shape_get_points for getting the List of points --- src/shape.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/shape.c b/src/shape.c index a805284..17b47e3 100644 --- a/src/shape.c +++ b/src/shape.c @@ -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);