Lines Matching defs:point
269 Returns a unique 32 bit int for a given point.
272 - returned value is unchanged when the point is moved by less than 1/1024 of px
309 sp_star_get_curvepoint (SPStar *star, SPStarPoint point, gint index, bool previ)
311 // the point whose neighboring curve handle we're calculating
312 Geom::Point o = sp_star_get_xy (star, point, index);
318 // the other point type
319 SPStarPoint other = (point == SP_STAR_POINT_KNOT2? SP_STAR_POINT_KNOT1 : SP_STAR_POINT_KNOT2);
322 Geom::Point prev = (star->flatsided? sp_star_get_xy (star, point, pi) : sp_star_get_xy (star, other, point == SP_STAR_POINT_KNOT2? index : pi));
323 Geom::Point next = (star->flatsided? sp_star_get_xy (star, point, ni) : sp_star_get_xy (star, other, point == SP_STAR_POINT_KNOT1? index : ni));
328 // point to which we direct the bissector of the curve handles;
339 // multiply rot by star->rounded coefficient and the distance to the star point; flip for next
351 // the seed corresponding to the exact point
358 // the randomized corner point
359 Geom::Point o_randomized = sp_star_get_xy (star, point, index, true);
392 // other places that call that function (e.g. the knotholder) need the exact point
565 * @point: point type to obtain X-Y value
568 * @randomized: false (default) if you want to get exact, not randomized point
573 sp_star_get_xy (SPStar const *star, SPStarPoint point, gint index, bool randomized)
577 double arg = star->arg[point];
580 Geom::Point xy = star->r[point] * Geom::Point(cos(arg), sin(arg)) + star->center;
583 // return the exact point
585 } else { // randomize the point
586 // find out the seed, unique for this point so that randomization is the same so long as the original point is stationary
592 // add the shift to the exact point