BinaryOperationVector class

Signature

  1. export declare class BinaryOperationVector implements Vector<number>

Import

  1. 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

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

Parameters

ParameterTypeDescription
leftVector<number>
rightVector<number>
operationBinaryOperation

length property

Signature

  1. get length(): number;

get method

Signature

  1. get(index: number): number;

Parameters

ParameterTypeDescription
indexnumber

Returns:

number

toArray method

Signature

  1. toArray(): number[];

Returns:

number[]

toJSON method

Signature

  1. toJSON(): number[];

Returns:

number[]