View definition

func CreateMat3PositionToBarycentric

Defined in github.com/google/gxui/math/mat3.go

Description

   A
  ╱ ╲
 ╱___╲
B     C

[V₀, V₁, V₂] * M = [λ₀, λ₁, 1] λ₂ = 1 - (λ₀ + λ₁)

[V₀, V₁, V₂] = A • λ₀ + B • λ₁ + C • λ₂

A * M = (1, 0, 1) B * M = (0, 1, 1) C * M = (0, 0, 1)

CreateMat3PositionToBarycentric is referenced in 1 repository

github.com/google/gxui