Logo Search packages:      
Sourcecode: inkscape version File versions

Point NR::rot90 ( Point const &  p  )  [inline]

Returns p * NR::rotate_degrees(90), but more efficient.

Angle direction in Inkscape code: If you use the traditional mathematics convention that y increases upwards, then positive angles are anticlockwise as per the mathematics convention. If you take the common non-mathematical convention that y increases downwards, then positive angles are clockwise, as is common outside of mathematics.

There is no rot_neg90 function: use -rot90(p) instead.

Definition at line 47 of file nr-point-fns.h.

Referenced by Snapper::intersector_a_vector_snap(), sp_darray_center_tangent(), and sp_intersector_line_intersection().

    return Point(-p[Y], p[X]);

Generated by  Doxygen 1.6.0   Back to index