SUBSYSTEM OVERVIEW
Math (MTH) Subsystem
The MTH subsystem provides functions for the manipulation of vectors, matrices, etc.
VECTOR FUNCTIONS
The vector functions performs basic operation on vector data types. Most of the functions can work on vectors of any dimensionality. The following functions are available:
See the manual pages for the full bindings.
GENERAL FUNCTIONS
These are general purpose math functions. The following functions are available:
Find the average point of a set of points
Compute the cosine of the angle between two vectors.
Check if three points are colinear
Check for the coincidence of two points
Check for the coincidence of two points using tolerance
Check if three points are directionally colinear
Check two double arrays for equality
Find the minimium and maximium coordinate values
Find active ranges of MinMax boxes in a specified dimension
Find two perpendicular vectors (unit) to a unit vector
Get the area of a 2D point set assuming counterclockwise orientation
Get the angle between X axis and the line through a point and the origin
Calculate and round sin and cos of an angle
Compute adjusted angle of a specified point
Get a 3X3 rotation matrix defined by an axis and the angle or rotation about the axis
Compute distance between two points
Determine the factorial of a number
Build a nXm identity matrix
Find all of the 2D intersections between a specified line segment and a set of linear strings
Get the matrix for a plane defined by three points
Get a 3X3 rotation matrix for a three point plane
Get a 3X3 rotation matrix defined by the normal to plane
Get the 3X3 rotation matrix defined by the plane of the points
Get the sign of a value
Get the radius and the projected point from the projection of a point to a vector through a point
Compute squared distance between two points
Find the intersection points between a horizontal line and a loop
Insert a 2D point into an array of points after pntno location
Intersect two parametric lines in the xy-plane
Intersect two 3 space lines
Compute the least squares line through a set of 2D points
Check for the relation of two non-intersecting loops
Find the transformation matrix from the global to a local system
Find the inverse of a square matrix
Find the transformation matrix from a local to the global system
Find the product of two matrices
Find the transformation matrix for a rotation about an axis
Find the transformation matrix for a translation along an axis
Find the transpose of a matrix
Translate a 3D point along a specified direction
Determine if a 2D point is outside, on, or inside a loop of 2D points
Find least squares plane of points and test points for planarity
Check if a points is in a plane defined by three points
Check if a set of points all line on a straight line
Find the projection of a point to a plane
Find the projection of a 3D point to a 3D line
Find the projection of a 2D point to a 2D line
Find the projection of a point to a line
Solve two linear equations in two unknowns
Sort an array of integer values in ascending/descending order
Sort an array of double values in ascending/descending order
Sort a 2-D double array with a 1-D integer array
Find the sweeping angles of a set of continuous points on XY plane
Merge sweeping angles
Find the sweeping angles of a closed loop
Transform a 3D point through a matrix
Transform a 3D vector through a matrix
Find the intersection points between a vertical line and a loop
See the manual pages for the full bindings.