MCPcopy Index your code
hub / github.com/EngoEngine/engo / MultiplyMatrixVector

Method MultiplyMatrixVector

math.go:541–546  ·  view source on GitHub ↗

MultiplyMatrixVector multiplies the matrix m with the point and returns the result.

(m *Matrix)

Source from the content-addressed store, hash-verified

539
540// MultiplyMatrixVector multiplies the matrix m with the point and returns the result.
541func (p *Point) MultiplyMatrixVector(m *Matrix) *Point {
542 x := m.Val[m00]*p.X + m.Val[m01]*p.Y + m.Val[m02]
543 y := m.Val[m10]*p.X + m.Val[m11]*p.Y + m.Val[m12]
544 p.X, p.Y = x, y
545 return p
546}

Callers 3

TestMultiplyMatrixPointFunction · 0.80
ShouldDrawMethod · 0.80
ShouldDrawMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestMultiplyMatrixPointFunction · 0.64