BBMOD_Vec3.FromBarycentric

A function defined in BBMOD_Vec3.gml

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 © 2024, BlueBurn. Built on January 21, 2024 using GMDoc.