# Class: VectorHelper

## coreutils. VectorHelper

#### new VectorHelper()

  Static helper class for geometry operations

### Methods

#### <static> degreeToRadians(degree)

  Convert degree to radians

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `degree` | number |

  ##### Returns:

  radians
  Type
    number

#### <static> getAngleBetween(x1, y1, x2, y2)

  Get angle in radians between points

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `x1` | number | point 1 x
  `y1` | number | point 1 y
  `x2` | number | point 2 x
  `y2` | number | point 2 y

  ##### Returns:

  radians
  Type
    number

#### <static> getDistanceBetween(x1, y1, x2, y2)

  Get distance between points

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `x1` | number | point 1 x
  `y1` | number | point 1 y
  `x2` | number | point 2 x
  `y2` | number | point 2 y

  ##### Returns:

  distance
  Type
    number

#### <static> radiansToDegree(radians)

  Convert radians to degree

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `radians` | number |

  ##### Returns:

  degree
  Type
    number

#### Search results