Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

VRageMath.Vector3D.Barycentric

Malware edited this page Dec 25, 2018 · 19 revisions

IndexVector3D

csharp[Vector3D](VRageMath.Vector3D) Barycentric([Vector3D](VRageMath.Vector3D) value1, [Vector3D](VRageMath.Vector3D) value2, [Vector3D](VRageMath.Vector3D) value3, [double](System.Double) amount1, [double](System.Double) amount2)##### Summary

Returns a Vector3 containing the 3D Cartesian coordinates of a point specified in Barycentric coordinates relative to a 3D triangle.

csharpvoid Barycentric(ref [Vector3D](VRageMath.Vector3D) value1, ref [Vector3D](VRageMath.Vector3D) value2, ref [Vector3D](VRageMath.Vector3D) value3, [double](System.Double) amount1, [double](System.Double) amount2, ref [Vector3D](VRageMath.Vector3D) result)##### Summary

Returns a Vector3 containing the 3D Cartesian coordinates of a point specified in barycentric (areal) coordinates relative to a 3D triangle.

csharpvoid Barycentric([Vector3D](VRageMath.Vector3D) p, [Vector3D](VRageMath.Vector3D) a, [Vector3D](VRageMath.Vector3D) b, [Vector3D](VRageMath.Vector3D) c, ref [double](System.Double) u, ref [double](System.Double) v, ref [double](System.Double) w)##### Summary

Compute barycentric coordinates (u, v, w) for point p with respect to triangle (a, b, c) From : Real-Time Collision Detection, Christer Ericson, CRC Press 3.4 Barycentric Coordinates

Clone this wiki locally