MCPcopy 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
28func 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
36func Rotate(v Vector, a float64) Matrix {
37 v = v.Normalize()

Callers 1

ScaleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected