Class Convert
Static class to handle unit and type conversions.
Inheritance
System.Object
Convert
Namespace: Paramdigma.Core
Assembly: Paramdigma.Core.dll
Syntax
public static class Convert : object
Methods
| Improve this Doc View SourcePoint3dToBarycentric(Point3d, Point3d, Point3d, Point3d)
Compute barycentric coordinates (u, v, w) for point p with respect to triangle (a, b, c).
Declaration
public static double[] Point3dToBarycentric(Point3d p, Point3d a, Point3d b, Point3d c)
Parameters
Type | Name | Description |
---|---|---|
Point3d | p | Point to convert. |
Point3d | a | First point of triangle. |
Point3d | b | Second point of triangle. |
Point3d | c | Third point of triangle. |
Returns
Type | Description |
---|---|
System.Double[] |