|
Some of the low level
C++ Direct Interface (DI) functions related to mathematics are:
|
|
|
angle_between
|
Gets the angle (in radians) between two vectors or two unit vectors in the range 0 < angle < 2*pi.
|
|
|
are_parallel
|
Determines if two vectors or two unit vectors are parallel within
SPAresnor.
|
|
|
are_perpendicular
|
Determines if two vectors or two unit vectors are perpendicular, within
SPAresnor.
|
|
|
distance_to_line
|
Determines the distance from a position to a line.
|
|
|
distance_to_plane
|
Determines the distance from a position to a plane.
|
|
|
distance_to_point
|
Determines the distance between two points.
|
|
|
find_best_pt
|
Gets the
SPAposition in array of
SPApositions that is closest to a given
SPAposition.
|
|
|
get_plane_from_points
|
Determines the plane on which an array of positions or three positions lie, if any.
|
|
|
intersect_line_circle
|
Gets the intersections of a line with a circle.
|
|
|
intersect_line_plane
|
Gets the intersection of a line with a plane.
|
|
|
intersect_plane_plane
|
Gets the intersection of two planes.
|
|
|
is_equal
|
Determines if two values (SPApositions,
SPAvectors, or
SPAunit_vectors) are equal.
|
|
|
is_greater_than
|
Determines if the first value is greater than the second value.
|
|
|
is_less_than
|
Determines if the first value is less than the second value.
|
|
|
is_negative
|
Determines if a value is negative.
|
|
|
is_on_line
|
Determines if a
SPAposition is on a
line within
SPAresabs.
|
|
|
is_on_plane
|
Determines if a
SPAposition is on a
plane within
SPAresabs.
|
|
|
is_positive
|
Determines if a value is positive.
|
|
|
is_zero
|
Determines if a value, position, vector, or unit vector is zero relative to
SPAresabs.
|
|
|
is_zero_mch
|
Determines if a value is zero relative to
SPAresmch.
|
|
|
is_zero_nor
|
Determines if a value is zero relative to
SPAresnor.
|