Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

static Geom::Point Inkscape::UI::direction ( Geom::Point const &  first,
Geom::Point const &  second 
) [static]

Computes an unit vector of the direction from first to second control point

Definition at line 68 of file node.cpp.

References Geom::unit_vector().

Referenced by Inkscape::Text::Layout::dumpAsText(), Inkscape::UI::Handle::move(), Inkscape::UI::Node::setType(), and Inkscape::Text::Layout::simulateLayoutUsingKerning().

    return Geom::unit_vector(second - first);

Generated by  Doxygen 1.6.0   Back to index