Mac Guides | Samples

MonoMac.OpenGL.Vector3d.BaryCentric Method

Interpolate 3 Vectors using Barycentric coordinates

Syntax

public static Vector3d BaryCentric (Vector3d a, Vector3d b, Vector3d c, Double u, Double v)

Parameters

a
First input Vector
b
Second input Vector
c
Third input Vector
u
First Barycentric Coordinate
v
Second Barycentric Coordinate

Returns

a when u=v=0, b when u=1,v=0, c when u=0,v=1, and a linear combination of a,b,c otherwise

Requirements

Namespace: MonoMac.OpenGL
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0