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

Method SetDiv

math32/vector3.go:215–219  ·  view source on GitHub ↗

SetDiv sets this to division by other vector (i.e., /= or divide-equals).

(other Vector3)

Source from the content-addressed store, hash-verified

213
214// SetDiv sets this to division by other vector (i.e., /= or divide-equals).
215func (v *Vector3) SetDiv(other Vector3) {
216 v.X /= other.X
217 v.Y /= other.Y
218 v.Z /= other.Z
219}
220
221// SetDivScalar sets this to division by scalar.
222func (v *Vector3) SetDivScalar(scalar float32) {

Callers 3

TestVector3Function · 0.95
UpdateMethod · 0.45
TransformMethod · 0.45

Calls

no outgoing calls

Tested by 1

TestVector3Function · 0.76