+++ # ----------------------------------------------------------------------- # Do not edit this file. It is automatically generated by API Documenter. # ----------------------------------------------------------------------- title = "BinaryOperationVector" keywords = ["grafana","documentation","sdk","@grafana/data"] type = "docs" +++ ## BinaryOperationVector class Signature ```typescript export declare class BinaryOperationVector implements Vector ``` Import ```typescript import { BinaryOperationVector } from '@grafana/data'; ``` Constructors | Constructor | Modifiers | Description | | --- | --- | --- | | [constructor(left, right, operation)](#constructor-leftrightoperation) | | Constructs a new instance of the BinaryOperationVector class | Properties | Property | Modifiers | Type | Description | | --- | --- | --- | --- | | [length](#length-property) | | number | | Methods | Method | Modifiers | Description | | --- | --- | --- | | [get(index)](#get-method) | | | | [toArray()](#toarray-method) | | | | [toJSON()](#tojson-method) | | | ### constructor(left, right, operation) Constructs a new instance of the `BinaryOperationVector` class Signature ```typescript constructor(left: Vector, right: Vector, operation: BinaryOperation); ``` Parameters | Parameter | Type | Description | | --- | --- | --- | | left | Vector<number> | | | right | Vector<number> | | | operation | BinaryOperation | | ### length property Signature ```typescript get length(): number; ``` ### get method Signature ```typescript get(index: number): number; ``` Parameters | Parameter | Type | Description | | --- | --- | --- | | index | number | | Returns: `number` ### toArray method Signature ```typescript toArray(): number[]; ``` Returns: `number[]` ### toJSON method Signature ```typescript toJSON(): number[]; ``` Returns: `number[]`