formatVector

@qbead/bloch-sphere


@qbead/bloch-sphere / formatVector

Function: formatVector()

formatVector(v, precision): string

Defined in: src/format.ts:6arrow-up-right

Format a vector as a string with a given precision.

Parameters

Parameter
Type
Default value

v

Vector3

undefined

precision

number

2

Returns

string

Last updated