Point | Image Quantization Library (image-q)

v8 optimized class 1) "constructor" should have initialization with worst types 2) "set" should have |0 / >>> 0

### Hierarchy

- Point

## Index

### Constructors

- constructor

### Properties

- Lab
- a
- b
- g
- r
- rgba
- uint32
- _BLUE_COEFFICIENT
- _GREEN_COEFFICIENT
- _RED_COEFFICIENT

### Methods

- _loadQuadruplet
- _loadRGBA
- _loadUINT32
- from
- getLuminosity
- createByQuadruplet
- createByRGBA
- createByUint32

## Constructors

### constructor

- new Point(): Point

- - Defined in utils/point.ts:63

  #### Returns Point

## Properties

### Lab

Lab: object

- Defined in utils/point.ts:27

#### Type declaration

- ##### L: number

- ##### a: number

- ##### b: number

### a

a: number

- Defined in utils/point.ts:24

### b

b: number

- Defined in utils/point.ts:23

### g

g: number

- Defined in utils/point.ts:22

### r

r: number

- Defined in utils/point.ts:21

### rgba

rgba: number[]

- Defined in utils/point.ts:26

### uint32

uint32: number

- Defined in utils/point.ts:25

### Static Private _BLUE_COEFFICIENT

_BLUE_COEFFICIENT: number

- Defined in utils/point.ts:19

### Static Private _GREEN_COEFFICIENT

_GREEN_COEFFICIENT: number

- Defined in utils/point.ts:18

### Static Private _RED_COEFFICIENT

_RED_COEFFICIENT: number

- Defined in utils/point.ts:17

## Methods

### Private _loadQuadruplet

- _loadQuadruplet(): void

- - Defined in utils/point.ts:143

  #### Returns void

### Private _loadRGBA

- _loadRGBA(): void

- - Defined in utils/point.ts:136

  #### Returns void

### Private _loadUINT32

- _loadUINT32(): void

- - Defined in utils/point.ts:132

  #### Returns void

### from

- from(point: Point): void

- - Defined in utils/point.ts:82

  #### Parameters

  - ##### point: Point

  #### Returns void

### getLuminosity

- getLuminosity(useAlphaChannel: any): number

- - Defined in utils/point.ts:108

  #### Parameters

  - ##### useAlphaChannel: any

  #### Returns number

### Static createByQuadruplet

- createByQuadruplet(quadruplet: number[]): Point

- - Defined in utils/point.ts:29

  #### Parameters

  - ##### quadruplet: number[]

  #### Returns Point

### Static createByRGBA

- createByRGBA(red: number, green: number, blue: number, alpha: number): Point

- - Defined in utils/point.ts:42

  #### Parameters

  - ##### red: number

  - ##### green: number

  - ##### blue: number

  - ##### alpha: number

  #### Returns Point

### Static createByUint32

- createByUint32(uint32: number): Point

- - Defined in utils/point.ts:55

  #### Parameters

  - ##### uint32: number

  #### Returns Point

Generated using TypeDoc