Options
All
  • Public
  • Public/Protected
  • All
Menu

@openhps/core

Index

Classes Flow shape

Classes Graph

Classes Node

Classes Other

Classes Position

Classes Processing node

Classes Sensor Value

Classes Sink node

Classes Source node

Classes Unit

Classes data

Interfaces Graph

Interfaces Other

Interfaces Position

Interfaces Unit

Type aliases Other

Type aliases Unit

Functions

Other Type aliases

Constructor

Constructor<T>: new (...args: any[]) => T

Type parameters

  • T

Type declaration

    • new (...args: any[]): T
    • Parameters

      • Rest ...args: any[]

      Returns T

DeserializerFn

DeserializerFn<T, TD, Raw>: (sourceObject: Raw, typeDescriptor: TD, knownTypes: Map<string, Serializable<any>>, memberName: string, deserializer: Deserializer, memberOptions?: ObjectMemberMetadata, serializerOptions?: any) => T

Type parameters

  • T

  • TD: TypeDescriptor

  • Raw

Type declaration

DistanceFn

DistanceFn: (pointA: number[], pointB: number[]) => number

Type declaration

    • (pointA: number[], pointB: number[]): number
    • Parameters

      • pointA: number[]
      • pointB: number[]

      Returns number

EulerOrder

EulerOrder: "XYZ" | "XZY" | "YXZ" | "YZX" | "ZXY" | "ZYX"

FilterQuery

FilterQuery<T>: { [ P in keyof T]?: QuerySelector<T[P]> | T[P] | RegExp | T | any } & RootQuerySelector<T>

Type parameters

  • T = any

GraphShapeNodeOptions

GraphShapeNodeOptions: NodeOptions

IndexedObject

IndexedObject: Object & {}

Serializable

Serializable<T>: Constructor<T> | AbstractType<T>

Type parameters

  • T

SerializerFn

SerializerFn<T, TD, Raw>: (sourceObject: T, typeDescriptor: TD, memberName: string, serializer: Serializer, memberOptions?: ObjectMemberMetadata, serializerOptions?: any) => Raw

Type parameters

  • T

  • TD: TypeDescriptor

  • Raw

Type declaration

    • Parameters

      Returns Raw

Sort

Sort: [string, SortDirection][]

SortDirection

SortDirection: 1 | -1

Typelike

Typelike: TypeDescriptor | Serializable<any>

UnitPrefixType

UnitPrefixType: "decimal" | "none"

UnitValueType

UnitValueType: number | Vector3 | number

Unit Type aliases

UnitBasicDefinition

UnitBasicDefinition: { magnitude?: number; offset?: number; unit: string }

Type declaration

  • Optional magnitude?: number

    Conversion magnitude This is the magnitude to convert this unit to the target unit.

  • Optional offset?: number

    Conversion offset

  • unit: string

    Target unit

UnitDefinition

UnitDefinition: UnitBasicDefinition | UnitFunctionDefinition<any, any>

UnitFunctionDefinition

UnitFunctionDefinition<In, Out>: { unit: string; fromUnit: any; toUnit: any }

Type parameters

  • In

  • Out

Type declaration

Functions

CANBERRA

  • CANBERRA(pointA: number[], pointB: number[]): number
  • Canberra distance function

    Parameters

    • pointA: number[]

      n-dimensional point

    • pointB: number[]

      n-dimensional point

    Returns number

    distance

CHEBYSHEV

  • CHEBYSHEV(pointA: number[], pointB: number[]): number
  • Chebyshev distance function

    Parameters

    • pointA: number[]

      n-dimensional point

    • pointB: number[]

      n-dimensional point

    Returns number

    distance

EUCLIDEAN

  • EUCLIDEAN(pointA: number[], pointB: number[]): number
  • Euclidean distance function

    Parameters

    • pointA: number[]

      n-dimensional point

    • pointB: number[]

      n-dimensional point

    Returns number

    distance

HAVERSINE

  • HAVERSINE(pointA: number[], pointB: number[]): number
  • Haversine formulate to calculate distance of two geographical points

    Parameters

    • pointA: number[]

      Point a

    • pointB: number[]

      Point B

    Returns number

    distance

MANHATTAN

  • MANHATTAN(pointA: number[], pointB: number[]): number
  • Manhattan distance function

    Parameters

    • pointA: number[]

      n-dimensional point

    • pointB: number[]

      n-dimensional point

    Returns number

    distance

SerializableArrayMember

SerializableMapMember

SerializableMember

SerializableMemberFunction

SerializableObject

SerializableSetMember