MCPcopy Create free account
hub / github.com/SolarLune/masterplan / TranslatePoint

Method TranslatePoint

camera.go:106–108  ·  view source on GitHub ↗
(point Vector)

Source from the content-addressed store, hash-verified

104}
105
106func (camera *Camera) TranslatePoint(point Vector) Vector {
107 return point.Sub(camera.Offset())
108}
109
110func (camera *Camera) UntranslatePoint(point Vector) Vector {
111 point = point.Add(camera.Offset().Inverted())

Callers 15

TranslateRectMethod · 0.95
DrawMethod · 0.80
DrawMethod · 0.80
DrawJointMethod · 0.80
DrawShadowMethod · 0.80
DrawCardMethod · 0.80
PostDrawMethod · 0.80
DrawGridMethod · 0.80
DrawMethod · 0.80
DrawMethod · 0.80
DrawMethod · 0.80
DrawMethod · 0.80

Calls 2

OffsetMethod · 0.95
SubMethod · 0.45

Tested by

no test coverage detected