MCPcopy
hub / github.com/fogleman/ln / Cross

Method Cross

ln/vector.go:44–49  ·  view source on GitHub ↗
(b Vector)

Source from the content-addressed store, hash-verified

42}
43
44func (a Vector) Cross(b Vector) Vector {
45 x := a.Y*b.Z - a.Z*b.Y
46 y := a.Z*b.X - a.X*b.Z
47 z := a.X*b.Y - a.Y*b.X
48 return Vector{x, y, z}
49}
50
51func (a Vector) Normalize() Vector {
52 d := a.Length()

Callers 8

Paths4Method · 0.95
PathsMethod · 0.80
PathsMethod · 0.80
LookAtFunction · 0.80
PathsMethod · 0.80
renderFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected