Search:     Advanced search

Math Routines

Article ID: 73
Last updated: 22 Sep, 2010
Views: 1361
Posted: 12 Jun, 2008
by Ramsey M.
Updated: 22 Sep, 2010
by Murray D.

Here is a list of available math routines:

Min(Value1, Value2)
Return the MIN of 2 numbers
Max(Value1, Value2)
Return the MAX of 2 numbers
DistanceBetweenPoints(X, Y, X2, Y2)
Returns the distance between points
DistanceBetweenPointsScaled(X, Y, X2, Y2)
Returns the distance between points
AngleBetweenPointsUnScaled(X, Y, X2, Y2)
Returns the angle between points
ParallelLine(X, Y, X2, Y2, DIST, NX, NY, NX2, NY2)
Returns a parallel line
ExtendLine(X, Y, X2, Y2, PX, PY)

Returns the distance a point (PX, PY) is from a line (X, Y, X2, Y2)

PointOnAngle(X, Y, Angle, Distance, RX, RY)
Calculates a point from an existing point on an angle.
GetIntersectPoint(P1X,P1Y,P2X,P2Y,P3X,P3Y,P4X,P4Y,RX,RY)

Calculates the intersect point of 2 lines. Returns 1 if the lines intersect, and 0 if they do not intersect.

This article was:  
Prev  Not what you're looking for? Suggest a topic  Next
Item Section Routines     Note Routines