Logo Search packages:      
Sourcecode: inkscape version File versions

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

Returns p * Geom::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 207 of file point.h.

Referenced by rotate_degrees(), and vectors_are_clockwise().

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

Generated by  Doxygen 1.6.0   Back to index