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

Method Sub

styles/sides.go:278–285  ·  view source on GitHub ↗

Sub subtracts the other side floats from the side floats and returns the result

(other SideFloats)

Source from the content-addressed store, hash-verified

276// Sub subtracts the other side floats from
277// the side floats and returns the result
278func (sf SideFloats) Sub(other SideFloats) SideFloats {
279 return NewSideFloats(
280 sf.Top-other.Top,
281 sf.Right-other.Right,
282 sf.Bottom-other.Bottom,
283 sf.Left-other.Left,
284 )
285}
286
287// MulScalar multiplies each side by the given scalar value
288// and returns the result.

Callers 9

AddWordMethod · 0.45
DeleteWordMethod · 0.45
RenderGeomMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
TransformMethod · 0.45
reflectPtFunction · 0.45
SetNodePosMethod · 0.45
LocalBBoxMethod · 0.45

Calls 1

NewSideFloatsFunction · 0.85

Tested by

no test coverage detected