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

Square.

Syntax
C#
Visual Basic
public TMtxVec Sqr();

Calculate the square of all caling object elements in-place.

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