Class MathFunctions
Contains miscellaneous math functions
Namespace: ABB.Robotics.Math
Assembly: ABB.Robotics.Math.dll
Syntax
public static class MathFunctions
Methods
ThreePointCircle(Vector3, Vector3, Vector3, out Double, out Vector3, out Vector3)
Calculates a circle from three points
Declaration
public static bool ThreePointCircle(Vector3 p1, Vector3 p2, Vector3 p3, out double radius, out Vector3 center, out Vector3 normal)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | p1 | First point |
Vector3 | p2 | Second point |
Vector3 | p3 | Third point |
Double | radius | Radius of the circle |
Vector3 | center | Center point of the circle |
Vector3 | normal | Normal of the circle |
Returns
Type | Description |
---|---|
Boolean | True is the circle could be calculated, false otherwise (e.g. the three points are on a straight line) |