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

Method MultiplyScalar

math.go:95–99  ·  view source on GitHub ↗

MultiplyScalar multiplies each component of p by s

(s float32)

Source from the content-addressed store, hash-verified

93
94// MultiplyScalar multiplies each component of p by s
95func (p *Point) MultiplyScalar(s float32) *Point {
96 p.X *= s
97 p.Y *= s
98 return p
99}
100
101// Add sets the components of p to the pointwise summation of p + p2
102func (p *Point) Add(p2 Point) *Point {

Callers 5

TestPointMethodChainFunction · 0.95
LineTraceFunction · 0.80
UpdateMethod · 0.80
UpdateMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestPointMethodChainFunction · 0.76