skinning.utils.math.line module¶
-
skinning.utils.math.line.
closest_point_on_line
(a, b, point)¶ Get the closest point on a line. The line is defined by the provided a and b point. The point is the point in space that is used to find the closest point on the line.
Parameters: - a (OpenMaya.MVector) –
- b (OpenMaya.MVector) –
- point (OpenMaya.MVector) –
Returns: Closest point on line
Return type: OpenMaya.MVector
-
skinning.utils.math.line.
parameter_of_point_on_line
(a, b, point)¶ Get the parameter of a point on a line. For this function to give a correct result it is important that the provided point already lies on the line. The
closest_point_on_line()
can be used to get that point on the line.Parameters: - a (OpenMaya.MVector) –
- b (OpenMaya.MVector) –
- point (OpenMaya.MVector) –
Returns: Parameter of the point on the line
Return type: float