Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/fogleman/ln
/ Scale
Function
Scale
ln/matrix.go:28–34 ·
view source on GitHub ↗
(v Vector)
Source
from the content-addressed store, hash-verified
26
}
27
28
func
Scale(v Vector) Matrix {
29
return
Matrix{
30
v.X, 0, 0, 0,
31
0, v.Y, 0, 0,
32
0, 0, v.Z, 0,
33
0, 0, 0, 1}
34
}
35
36
func
Rotate(v Vector, a float64) Matrix {
37
v = v.Normalize()
Callers
1
Scale
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected