Core Function Barycentric

From Sputnik Wiki
Jump to: navigation, search
Barycentric( <value1>, <value2>, <value3>, <amount1>, <amount2> )

Contents

Description

Returns the Cartesian coordinate for one axis of a point that is defined by a given triangle and two normalized barycentric (areal) coordinates

Parameters

value1

The coordinate on one axis of vertex 1 of the defining triangle.

value2

The coordinate on the same axis of vertex 2 of the defining triangle.

value3

The coordinate on the same axis of vertex 3 of the defining triangle.

amount1

The normalized barycentric (areal) coordinate b2, equal to the weighting factor for vertex 2, the coordinate of which is specified in value2.

amount2

The normalized barycentric (areal) coordinate b3, equal to the weighting factor for vertex 3, the coordinate of which is specified in value3.

Return Value

Cartesian coordinate of the specified point with respect to the axis being used.

Remarks

None.

Example

say Barycentric(10, 20, 30, 100, 200); // 5010
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox