class Intersect

Functions for intersection point computation.

Public Methods

static Point BoxIntersects (Point from, Point to, int width, int height)
Return intersection from point 'from' to box at 'to' having width and height
static Point BoxIntersects (Point position, Point to, int width, int height, int order, int count, int &code)
See above, intersecting line is order-th of count lines. code is not used.
static Point EllipseIntersects (Point from, Point to, int width, int height)
Return intersect from point 'from' to ellipse at 'to' having wd and ht.
static Point EllipseIntersects (Point position, Point to, int width, int height, int order, int count, int &code)
See above, intersecting line is order-th of count lines. code is not used.
static Point DiamondIntersects (Point from, Point to, int width, int height)
Return intersect from point 'from' to diamond at 'to' having wd and ht
static Point DiamondIntersects (Point position, Point to, int width, int height, int order, int count, int &code)
See above, intersecting line is order-th of count lines. code is not used.
static Point TriangleIntersects (Point from, Point to, int width, int height)
Return intersect from point 'from' to triangle at 'to' having wd and ht
static Point TriangleIntersects (Point position, Point to, int width, int height, int order, int count, int &code)
See above, intersecting line is order-th of count lines. code is not used.
static Point NoteBoxIntersects (Point from, Point to, int width, int height)
Return intersect from point 'from' to notebox at 'to' having wd and ht

Protected Methods

static Point DiamondSnp (Point to, int dx, int dy, int x1, int y1, int x2, int y2)
static void WhichLine (Point p, int w, int h, int dx, int dy, int &x1, int &y1, int &x2, int &y2)
static void WhichLine2 (Point p, int w, int h, int dx, int dy, int deltaY, int &x1, int &y1, int &x2, int &y2)
static void WhichLine3 (Point p, int w, int h, int dx, int dy, int deltaY, int &x1, int &y1, int &x2, int &y2)

Documentation

Functions for intersection point computation.
static Point BoxIntersects(Point from, Point to, int width, int height)
Return intersection from point 'from' to box at 'to' having width and height

static Point BoxIntersects(Point position, Point to, int width, int height, int order, int count, int &code)
See above, intersecting line is order-th of count lines. code is not used.

static Point EllipseIntersects(Point from, Point to, int width, int height)
Return intersect from point 'from' to ellipse at 'to' having wd and ht.

static Point EllipseIntersects(Point position, Point to, int width, int height, int order, int count, int &code)
See above, intersecting line is order-th of count lines. code is not used.

static Point DiamondIntersects(Point from, Point to, int width, int height)
Return intersect from point 'from' to diamond at 'to' having wd and ht

static Point DiamondIntersects(Point position, Point to, int width, int height, int order, int count, int &code)
See above, intersecting line is order-th of count lines. code is not used.

static Point TriangleIntersects(Point from, Point to, int width, int height)
Return intersect from point 'from' to triangle at 'to' having wd and ht

static Point TriangleIntersects(Point position, Point to, int width, int height, int order, int count, int &code)
See above, intersecting line is order-th of count lines. code is not used.

static Point NoteBoxIntersects(Point from, Point to, int width, int height)
Return intersect from point 'from' to notebox at 'to' having wd and ht

static Point DiamondSnp(Point to, int dx, int dy, int x1, int y1, int x2, int y2)

static void WhichLine(Point p, int w, int h, int dx, int dy, int &x1, int &y1, int &x2, int &y2)

static void WhichLine2(Point p, int w, int h, int dx, int dy, int deltaY, int &x1, int &y1, int &x2, int &y2)

static void WhichLine3(Point p, int w, int h, int dx, int dy, int deltaY, int &x1, int &y1, int &x2, int &y2)


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de