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

Method Length

math32/vector3.go:356–359  ·  view source on GitHub ↗

Length returns the length of this vector.

()

Source from the content-addressed store, hash-verified

354
355// Length returns the length of this vector.
356func (v *Vector3) Length() float32 {
357
358 return Sqrt(v.X*v.X + v.Y*v.Y + v.Z*v.Z)
359}
360
361// Normalize normalizes this vector so its length will be 1.
362// Returns the pointer to this updated vector.

Callers 15

NormalizeMethod · 0.95
SetLengthMethod · 0.95
AngleToMethod · 0.95
RandomTangentsMethod · 0.95
ExtractRotationMethod · 0.45
DecomposeMethod · 0.45
NormalizeMethod · 0.45
DistanceToPointMethod · 0.45
GetBoundingSphereMethod · 0.45
AreaMethod · 0.45
DistanceToPointMethod · 0.45
SetLengthMethod · 0.45

Calls 1

SqrtFunction · 0.85

Tested by

no test coverage detected