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.
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[]