MCPcopy Create free account
hub / github.com/tdewolff/canvas / Area

Method Area

util.go:414–416  ·  view source on GitHub ↗

Area returns the area of the rectangle.

()

Source from the content-addressed store, hash-verified

412
413// Area returns the area of the rectangle.
414func (r Rect) Area() float64 {
415 return (r.X1 - r.X0) * (r.Y1 - r.Y0)
416}
417
418// Center returns the center point.
419func (r Rect) Center() Point {

Callers 1

SimplifyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected