Menu

Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.

Enterprise Open source

BinaryOperationVector class

Signature

typescript
export declare class BinaryOperationVector implements Vector<number> 

Import

typescript
import { BinaryOperationVector } from '@grafana/data';

Constructors

ConstructorModifiersDescription
constructor(left, right, operation)Constructs a new instance of the BinaryOperationVector class

Properties

PropertyModifiersTypeDescription
lengthnumber

Methods

MethodModifiersDescription
get(index)
toArray()
toJSON()

constructor(left, right, operation)

Constructs a new instance of the BinaryOperationVector class

Signature

typescript
constructor(left: Vector<number>, right: Vector<number>, operation: BinaryOperation);

Parameters

ParameterTypeDescription
leftVector<number>
rightVector<number>
operationBinaryOperation

length property

Signature

typescript
get length(): number;

get method

Signature

typescript
get(index: number): number;

Parameters

ParameterTypeDescription
indexnumber

Returns:

number

toArray method

Signature

typescript
toArray(): number[];

Returns:

number[]

toJSON method

Signature

typescript
toJSON(): number[];

Returns:

number[]