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

Method Position

ln/ray.go:7–9  ·  view source on GitHub ↗
(t float64)

Source from the content-addressed store, hash-verified

5}
6
7func (r Ray) Position(t float64) Vector {
8 return r.Origin.Add(r.Direction.MulScalar(t))
9}

Callers 3

IntersectMethod · 0.80
IntersectMethod · 0.80
IntersectMethod · 0.80

Calls 2

MulScalarMethod · 0.80
AddMethod · 0.45

Tested by

no test coverage detected