MCPcopy Index your code
hub / github.com/tdewolff/canvas / H

Method H

util.go:409–411  ·  view source on GitHub ↗

H returns the height of the rectangle.

()

Source from the content-addressed store, hash-verified

407
408// H returns the height of the rectangle.
409func (r Rect) H() float64 {
410 return r.Y1 - r.Y0
411}
412
413// Area returns the area of the rectangle.
414func (r Rect) Area() float64 {

Callers 12

EmptyMethod · 0.95
renderBlockMethod · 0.80
parseDefsMethod · 0.80
TestTextBoundsFunction · 0.80
BenchmarkToRasterizerFunction · 0.80
BenchmarkToScanxFunction · 0.80
SetCoordRectMethod · 0.80
FitImageMethod · 0.80
ClipMethod · 0.80
DrawImageMethod · 0.80
drawTextAndMoveDownFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestTextBoundsFunction · 0.64
BenchmarkToRasterizerFunction · 0.64
BenchmarkToScanxFunction · 0.64