Logo Search packages:      
Sourcecode: inkscape version File versions

Coord Geom::dot ( Point const &  a,
Point const &  b 
) [inline]

compute the dot product (inner product) between the vectors a and b.

Definition at line 216 of file point.h.

Referenced by angle_between(), intersect_polish_root(), node_handle_request(), sp_item_notify_moveto(), sp_offset_distance_to_original(), sp_spiral_get_tangent(), and vectors_are_clockwise().

{ return a[0] * b[0] + a[1] * b[1]; }

Generated by  Doxygen 1.6.0   Back to index