MCPcopy Index your code
hub / github.com/fogleman/ln / Dot

Method Dot

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

Source from the content-addressed store, hash-verified

38}
39
40func (a Vector) Dot(b Vector) float64 {
41 return a.X*b.X + a.Y*b.Y + a.Z*b.Z
42}
43
44func (a Vector) Cross(b Vector) Vector {
45 x := a.Y*b.Z - a.Z*b.Y

Callers 6

IntersectSegmentMethod · 0.80
IntersectMethod · 0.80
SegmentDistanceMethod · 0.80
renderFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected