VS:Norm

From Vectorworks Developer
Jump to: navigation, search

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix


Description

Returns the length, or magnitude, of the specified vector.
FUNCTION Norm(
Vec  :VECTOR) : REAL;
def vs.Norm(Vec):
    return REAL

Parameters

Vec VECTOR Vector to be measured.

Return Value

A REAL value which is the length of the vector.

Example

VectorScript

PROCEDURE Example;
VAR
vec :VECTOR;
BEGIN
vec.x := 1;
vec.y := 1.732050807;
Message(Norm(vec));
END;
RUN(Example);

Python


Version

Availability: from All Versions

See Also

VS Functions:

VS:Distance

VS Functions: [[VS:Distance]]
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox