FromBarycentric

function

FromBarycentric(_v1, _v2, _v3, _f, _g)

Description

Computes the vector components using a formula _v1 + _f * (_v2 - _v1) + _g * (_v3 - _v1).

Arguments

Name Type Description
_v1 Struct.BBMOD_Vec3 The first point of a triangle.
_v2 Struct.BBMOD_Vec3 The second point of a triangle.
_v3 Struct.BBMOD_Vec3 The third point of a triangle.
_f Real The weighting factor between _v1 and _v2.
_g Real The weighting factor between _v1 and _v3.

Returns

Struct.BBMOD_Vec3 Returns self.

Do you find this page helpful?

Copyright © 2022, BlueBurn. Built on November 16, 2022 using GMDoc.