Düzenle

Aracılığıyla paylaş


SCNVector3.BaryCentric Method

Definition

Overloads

BaryCentric(SCNVector3, SCNVector3, SCNVector3, nfloat, nfloat)
BaryCentric(SCNVector3, SCNVector3, SCNVector3, Single, Single)

Interpolates a, b, and c, by using the barycentric coordinates u and v.

BaryCentric(SCNVector3, SCNVector3, SCNVector3, nfloat, nfloat, SCNVector3)
BaryCentric(SCNVector3, SCNVector3, SCNVector3, Single, Single, SCNVector3)

Interpolates a, b, and c, by using the barycentric coordinates u and v, and stores the result in result.

BaryCentric(SCNVector3, SCNVector3, SCNVector3, nfloat, nfloat)

public static SceneKit.SCNVector3 BaryCentric (SceneKit.SCNVector3 a, SceneKit.SCNVector3 b, SceneKit.SCNVector3 c, nfloat u, nfloat v);
static member BaryCentric : SceneKit.SCNVector3 * SceneKit.SCNVector3 * SceneKit.SCNVector3 * nfloat * nfloat -> SceneKit.SCNVector3

Parameters

u
nfloat
v
nfloat

Returns

Applies to

BaryCentric(SCNVector3, SCNVector3, SCNVector3, Single, Single)

Interpolates a, b, and c, by using the barycentric coordinates u and v.

public static SceneKit.SCNVector3 BaryCentric (SceneKit.SCNVector3 a, SceneKit.SCNVector3 b, SceneKit.SCNVector3 c, float u, float v);
static member BaryCentric : SceneKit.SCNVector3 * SceneKit.SCNVector3 * SceneKit.SCNVector3 * single * single -> SceneKit.SCNVector3

Parameters

u
Single
v
Single

Returns

When u and v are both 0, the result is a. When u it 1 and v is 0, the result is b. When u is 0 and v is 1, the result is c. Otherwise, a weighted combination of the three input vectors is returned.

Applies to

BaryCentric(SCNVector3, SCNVector3, SCNVector3, nfloat, nfloat, SCNVector3)

public static void BaryCentric (ref SceneKit.SCNVector3 a, ref SceneKit.SCNVector3 b, ref SceneKit.SCNVector3 c, nfloat u, nfloat v, out SceneKit.SCNVector3 result);
static member BaryCentric :  *  *  * nfloat * nfloat *  -> unit

Parameters

u
nfloat
v
nfloat
result
SCNVector3

Applies to

BaryCentric(SCNVector3, SCNVector3, SCNVector3, Single, Single, SCNVector3)

Interpolates a, b, and c, by using the barycentric coordinates u and v, and stores the result in result.

public static void BaryCentric (ref SceneKit.SCNVector3 a, ref SceneKit.SCNVector3 b, ref SceneKit.SCNVector3 c, float u, float v, out SceneKit.SCNVector3 result);
static member BaryCentric :  *  *  * single * single *  -> unit

Parameters

u
Single
v
Single
result
SCNVector3

Remarks

When u and v are both 0, the result is a. When u it 1 and v is 0, the result is b. When u is 0 and v is 1, the result is c. Otherwise, a weighted combination of the three input vectors results.

Applies to