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

Method SetAddScalar

math32/vector3.go:143–147  ·  view source on GitHub ↗

SetAddScalar sets this to addition with scalar.

(s float32)

Source from the content-addressed store, hash-verified

141
142// SetAddScalar sets this to addition with scalar.
143func (v *Vector3) SetAddScalar(s float32) {
144 v.X += s
145 v.Y += s
146 v.Z += s
147}
148
149// Sub subtracts other vector from this one and returns result in new vector.
150func (v Vector3) Sub(other Vector3) Vector3 {

Callers 6

TestVector3Function · 0.95
ExpandByScalarMethod · 0.45
ExpandByScalarMethod · 0.45
LocalBBoxMethod · 0.45
LocalBBoxMethod · 0.45
LocalBBoxMethod · 0.45

Calls

no outgoing calls

Tested by 1

TestVector3Function · 0.76