MCPcopy Create free account
hub / github.com/cogentcore/core / ToPointCeil

Method ToPointCeil

math32/vector2.go:143–145  ·  view source on GitHub ↗

ToPointCeil returns the vector as an [image.Point] with all values [Ceil]ed.

()

Source from the content-addressed store, hash-verified

141
142// ToPointCeil returns the vector as an [image.Point] with all values [Ceil]ed.
143func (a Vector2) ToPointCeil() image.Point {
144 return image.Point{int(Ceil(a.X)), int(Ceil(a.Y))}
145}
146
147// ToPointRound returns the vector as an [image.Point] with all values [Round]ed.
148func (a Vector2) ToPointRound() image.Point {

Callers 12

TestVector2Function · 0.95
ToRectMethod · 0.80
RectFromPosSizeMaxFunction · 0.80
RectFromPosSizeMinFunction · 0.80
BoundsMethod · 0.80
BoundingBoxMethod · 0.80
tstFunction · 0.80
renderBBoxMethod · 0.80
linkAtMethod · 0.80
cursorBBoxMethod · 0.80
NodeBBoxMethod · 0.80
NodeBBoxMethod · 0.80

Calls 1

CeilFunction · 0.85

Tested by 2

TestVector2Function · 0.76
tstFunction · 0.64