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

Method Abs

math32/vector3.go:296–298  ·  view source on GitHub ↗

Abs returns the vector with [Abs] applied to each component.

()

Source from the content-addressed store, hash-verified

294
295// Abs returns the vector with [Abs] applied to each component.
296func (v Vector3) Abs() Vector3 {
297 return Vec3(Abs(v.X), Abs(v.Y), Abs(v.Z))
298}
299
300// Distance, Normal:
301

Callers 15

TestVector3Function · 0.95
OpenPathMethod · 0.45
AddExternalFileMethod · 0.45
dirsToMethod · 0.45
AbsFunction · 0.45
NiceRoundNumberFunction · 0.45
ExtractGoFilesFunction · 0.45
CompileFileFunction · 0.45
CdMethod · 0.45
RunMethod · 0.45
SumSquares64Function · 0.45
SumSquaresBinTol64Function · 0.45

Calls 2

Vec3Function · 0.85
AbsFunction · 0.70

Tested by 12

TestVector3Function · 0.76
TestAllFunction · 0.36
TestPCAIrisFunction · 0.36
TestSVDIrisFunction · 0.36
mainrunFunction · 0.36
TestGaussianGenFunction · 0.36
TestBinomialGenFunction · 0.36
TestPoissonGenFunction · 0.36
TestGammaGenFunction · 0.36
TestBetaGenFunction · 0.36
assertAlmostEqualFunction · 0.36
assertAlmostEqualFunction · 0.36