MCPcopy Index your code
hub / github.com/g3n/engine / SetVector3

Method SetVector3

math32/vector4.go:39–46  ·  view source on GitHub ↗

SetVector3 sets this vector from another Vector3 and W

(other *Vector3, w float32)

Source from the content-addressed store, hash-verified

37
38// SetVector3 sets this vector from another Vector3 and W
39func (v *Vector4) SetVector3(other *Vector3, w float32) *Vector4 {
40
41 v.X = other.X
42 v.Y = other.Y
43 v.Z = other.Z
44 v.W = w
45 return v
46}
47
48// SetX sets this vector X component.
49// Returns the pointer to this updated Vector.

Callers 1

RenderSetupMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected