[path-builder] Micro-optimize

No need to initialize these when has_data=false.
This commit is contained in:
Behdad Esfahbod committed 2023-06-29 10:39:49 -06:00
1 parent 5703c1c4ea
commit 6abca413ae
1 file changed
+2 -2
+2 -2
View File
@@ -21,8 +21,8 @@ struct path_builder_t
operator bool () const { return has_data; }
bool has_data = false;
float x = 0.;
float y = 0.;
float x;
float y;
optional_point_t lerp (optional_point_t p, float t)
{ return optional_point_t (x + t * (p.x - x), y + t * (p.y - y)); }