Coyote Graphics Routines

Date: Fri Mar 27 12:14:20 2015

single page | use frames     summary     class     fields     routine details     file attributes

.\

cglineintersect.pro


top cgLineIntersect

Utilities

result = cgLineIntersect(x0, y0, x1, y1, x2, y2, x3, y3)

This function returns the intersection of two line segments, represented by four points.

Parameters

x0 in required

The x location of the one end of the first line segment.

y0 in required

The y location of the one end of the first line segment.

x1 in required

The x location of the other end of the first line segment.

y1 in required

The y location of the other end of the first line segment.

x2 in required

The x location of the one end of the second line segment.

y2 in required

The y location of the one end of the second line segment.

x3 in required

The x location of the other end of the second line segment.

y3 in required

The y location of the other end of the second line segment.

Author information

Author:

FANNING SOFTWARE CONSULTING:

David W. Fanning 1645 Sheely Drive Fort Collins, CO 80526 USA Phone: 970-221-0438 E-mail: david@idlcoyote.com Coyote's Guide to IDL Programming: http://www.idlcoyote.com

Copyright:

Copyright (c) 2014, Fanning Software Consulting, Inc.

History:

Change History:

Written, 10 September 2014 on suggestion of Wang Kang.

File attributes

Modification date: Fri Mar 27 11:07:35 2015
Lines: 89
Docformat: rst rst