MCPcopy
hub / github.com/tdewolff/canvas / Mul

Method Mul

util.go:270–272  ·  view source on GitHub ↗

Mul multiplies x and y by f.

(f float64)

Source from the content-addressed store, hash-verified

268
269// Mul multiplies x and y by f.
270func (p Point) Mul(f float64) Point {
271 return Point{f * p.X, f * p.Y}
272}
273
274// Div divides x and y by f.
275func (p Point) Div(f float64) Point {

Callers 15

TestPointFunction · 0.95
ParseSVGPathFunction · 0.95
TransformMethod · 0.45
renderLineToMethod · 0.45
ellipseToCubicBeziersFunction · 0.45
quadraticBezierPosFunction · 0.45
quadraticBezierDerivFunction · 0.45
quadraticBezierDeriv2Function · 0.45
quadraticBezierLengthFunction · 0.45
quadraticBezierDistanceFunction · 0.45
cubicBezierPosFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestPointFunction · 0.76