API Reference@grafana/data › BinaryOperationVector

BinaryOperationVector class

Signature

export declare class BinaryOperationVector implements Vector<number> 

Import

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

Constructors

Constructor Modifiers Description
constructor(left, right, operation) Constructs a new instance of the BinaryOperationVector class

Properties

Property Modifiers Type Description
length number

Methods

Method Modifiers Description
get(index)
toArray()
toJSON()

constructor(left, right, operation)

Constructs a new instance of the BinaryOperationVector class

Signature

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

Parameters

Parameter Type Description
left Vector<number>
right Vector<number>
operation BinaryOperation

length property

Signature

get length(): number;

get method

Signature

get(index: number): number;

Parameters

Parameter Type Description
index number

Returns:

number

toArray method

Signature

toArray(): number[];

Returns:

number[]

toJSON method

Signature

toJSON(): number[];

Returns:

number[]