MCPcopy
hub / github.com/EngoEngine/engo / Multiply

Method Multiply

math.go:116–120  ·  view source on GitHub ↗

Multiply sets the components of p to the pointwise product of p * p2

(p2 Point)

Source from the content-addressed store, hash-verified

114
115// Multiply sets the components of p to the pointwise product of p * p2
116func (p *Point) Multiply(p2 Point) *Point {
117 p.X *= p2.X
118 p.Y *= p2.Y
119 return p
120}
121
122// Equal indicates whether two points have the same value, avoiding issues with float precision
123func (p *Point) Equal(p2 Point) bool {

Callers 9

TestPointMethodChainFunction · 0.45
TestMatrixMultiplyFunction · 0.45
PreMethod · 0.45
PrepareCullingMethod · 0.45
mapPointMethod · 0.45
screenPointMethod · 0.45
PreMethod · 0.45
PrepareCullingMethod · 0.45

Calls

no outgoing calls

Tested by 3

TestPointMethodChainFunction · 0.36
TestMatrixMultiplyFunction · 0.36