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

Method ToFixed

math32/vector2.go:153–155  ·  view source on GitHub ↗

ToFixed returns the vector as a [fixed.Point26_6].

()

Source from the content-addressed store, hash-verified

151
152// ToFixed returns the vector as a [fixed.Point26_6].
153func (a Vector2) ToFixed() fixed.Point26_6 {
154 return ToFixedPoint(a.X, a.Y)
155}
156
157// RectFromPosSizeMax returns an [image.Rectangle] from the floor of pos
158// and ceil of size.

Callers 7

TestVector2Function · 0.95
RenderMethod · 0.95
MoveToMethod · 0.80
LineToMethod · 0.80
QuadraticToMethod · 0.80
CubicToMethod · 0.80
AddEllipseFunction · 0.80

Calls 1

ToFixedPointFunction · 0.85

Tested by 1

TestVector2Function · 0.76