X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftags%2Fstable%2Fsrc%2Fsynfig%2Fvaluenode_bline.h;h=915d2620b67a134e3e3802dbcda6877aa75f0894;hb=87a8cdff9da146170699176dddceaa894c1adefc;hp=221dc323032de78e4887dac8d4bfe2dc2142bb47;hpb=40dd10f62f1b0983b20cf99dd4780ea73236eb0c;p=synfig.git diff --git a/synfig-core/tags/stable/src/synfig/valuenode_bline.h b/synfig-core/tags/stable/src/synfig/valuenode_bline.h index 221dc32..915d262 100644 --- a/synfig-core/tags/stable/src/synfig/valuenode_bline.h +++ b/synfig-core/tags/stable/src/synfig/valuenode_bline.h @@ -1,11 +1,12 @@ /* === S Y N F I G ========================================================= */ /*! \file valuenode_bline.h -** \brief Template Header +** \brief Header file for implementation of the "BLine" valuenode conversion. ** ** $Id$ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2008 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -49,6 +50,9 @@ ValueBase convert_bline_to_segment_list(const ValueBase &bline); //! Converts a list of bline points into a list of widths ValueBase convert_bline_to_width_list(const ValueBase &bline); +//! Finds the closest point to pos in bline +Real find_closest_point(const ValueBase &bline, const Point &pos, Real &radius, bool loop, Point *out_point = 0); + /*! \class ValueNode_BLine ** \brief \writeme */