You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > Matrix Structure > Matrix Methods > Mag Method > Matrix.Mag Method ()
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Matrix.Mag Method ()

Magnitude.

Syntax
C#
Visual Basic
public TMtxVec Mag();

Calculate the magnitude for all calling object elements in-place. This method has the same function as the Abs method.

var a: Matrix; begin a.SetIt(1,4,false,[1,-2,3,4]); // a = [1,-2, 3,4] a.Mag; // a = [1, 2, 3,4] end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!