MCPcopy
hub / github.com/g3n/engine / Set

Method Set

math32/vector4.go:29–36  ·  view source on GitHub ↗

Set sets this vector X, Y, Z and W components. Returns the pointer to this updated vector.

(x, y, z, w float32)

Source from the content-addressed store, hash-verified

27// Set sets this vector X, Y, Z and W components.
28// Returns the pointer to this updated vector.
29func (v *Vector4) Set(x, y, z, w float32) *Vector4 {
30
31 v.X = x
32 v.Y = y
33 v.Z = z
34 v.W = w
35 return v
36}
37
38// SetVector3 sets this vector from another Vector3 and W
39func (v *Vector4) SetVector3(other *Vector3, w float32) *Vector4 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected