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

Method Div

util.go:275–277  ·  view source on GitHub ↗

Div divides x and y by f.

(f float64)

Source from the content-addressed store, hash-verified

273
274// Div divides x and y by f.
275func (p Point) Div(f float64) Point {
276 return Point{p.X / f, p.Y / f}
277}
278
279// Rot90CW rotates the line OP by 90 degrees CW.
280func (p Point) Rot90CW() Point {

Callers 6

TestPointFunction · 0.95
CentroidMethod · 0.95
SmoothenMethod · 0.45
TestPathDivFunction · 0.45
intersectionLineCircleFunction · 0.45
drawFunction · 0.45

Calls

no outgoing calls

Tested by 2

TestPointFunction · 0.76
TestPathDivFunction · 0.36