Debian Codegraph @

texmf-dist/tex/latex/tkz-elements/tkz_elements_functions_vectors.lua

raw
1 -- File: tkz_elements_functions_vectors.lua
2 -- Copyright (c) 2026 Alain Matthes
3 -- SPDX-License-Identifier: LPPL-1.3c
4 -- Maintainer: Alain Matthes
5
6
7 function scale_(v, d)
8 return v.tail + point(d * v.norm * math.cos(v.slope), d * v.norm * math.sin(v.slope))
9 end
10
11 -- Retourne la nouvelle TÊTE du vecteur, pas le vecteur scalaire
12 function scaled_head_(v, d)
13 return v.tail + d * (v.head - v.tail)
14 end
15