summaryrefslogtreecommitdiffstats
path: root/scene/resources/curve.h
diff options
context:
space:
mode:
authorAttackButton <rtfranco@gmail.com>2023-09-05 01:22:01 -0300
committerAttackButton <rtfranco@gmail.com>2023-10-03 09:33:38 -0300
commit93cccda82797d56956e5756841298671c4ecdb68 (patch)
treecad095f119aa1dd9070278efbf47a39d16decdb1 /scene/resources/curve.h
parent4c3dc26367518e006f8555c12f5d2df0b8a28192 (diff)
downloadredot-engine-93cccda82797d56956e5756841298671c4ecdb68.tar.gz
Add a button to clear curve points in the Path2D editor
Diffstat (limited to 'scene/resources/curve.h')
-rw-r--r--scene/resources/curve.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/curve.h b/scene/resources/curve.h
index 440e4466f5..e085dfedbd 100644
--- a/scene/resources/curve.h
+++ b/scene/resources/curve.h
@@ -237,6 +237,7 @@ public:
real_t get_baked_length() const;
Vector2 sample_baked(real_t p_offset, bool p_cubic = false) const;
Transform2D sample_baked_with_rotation(real_t p_offset, bool p_cubic = false) const;
+ PackedVector2Array get_points() const;
PackedVector2Array get_baked_points() const; //useful for going through
Vector2 get_closest_point(const Vector2 &p_to_point) const;
real_t get_closest_offset(const Vector2 &p_to_point) const;