Coordinates

MGI Apply Transform

Polymorphic VI: Apply a cartesian coordinate translation and rotation.

MGI Center from 3 Points

Polymorphic VI: Calculate the center of a circle based on three points on the circle.

MGI Find 2D Intersection of 2 Lines

Finds the intersection of 2 lines. If the lines are parallel, then an argument error (code 1) is output. The lines are specified using 2 points for each line. The points are specified as rows in a 2D array where the first column is x and the second is y.

MGI Rotate Vector

Polymorphic VI: Perform a 3D vector rotation about a coordinate axis.

MGI Cylindrical to Cartesian

Convert R,Th,Z to X,Y,Z.

MGI Find Closest Line Segment

Finds the line segment closest to the given x and y coordinates. The Graph Data is intepreted as a sequence of points which are connected by line segments. The points in the graph are assumed to be connected in the order provided. The output index is the index of the first point in the data that is an endpoint of the closest line segment.

MGI Find Closest Point

Finds the index of the point in the input data that is closest to the given x and y coordinates. The optional input allows the user to use the city block metric (i.e. the sum of the distances in the x and y directions) instead of the standard distance measurement.

MGI Generate Orthonormal Basis

Generate a set of orthonormal basis vectors from three points given in cartesian coordinates. The basis vectors are found by normalizing: w1=p1-p2 w2=w1 x (p2-p3) w3=w1 x w2

MGI Generate Rotation Matrix

Generate a 3x3 rotation matrix with specified diagonal elements, +/- the off diagonal element, and specified axis unrotated.