Static Public Member Functions | List of all members
RVO.RVOMath Struct Reference

Contains functions and constants used in multiple classes. More...

Collaboration diagram for RVO.RVOMath:
[legend]

Static Public Member Functions

static float abs (Vector2 vector)
 Computes the length of a specified two-dimensional vector. More...
 
static float absSq (Vector2 vector)
 Computes the squared length of a specified two-dimensional vector. More...
 
static Vector2 normalize (Vector2 vector)
 Computes the normalization of the specified two-dimensional vector. More...
 

Detailed Description

Contains functions and constants used in multiple classes.

Member Function Documentation

◆ abs()

static float RVO.RVOMath.abs ( Vector2  vector)
inlinestatic

Computes the length of a specified two-dimensional vector.

Parameters
vectorThe two-dimensional vector whose length is to be computed.
Returns
The length of the two-dimensional vector.

◆ absSq()

static float RVO.RVOMath.absSq ( Vector2  vector)
inlinestatic

Computes the squared length of a specified two-dimensional vector.

Returns
The squared length of the two-dimensional vector.
Parameters
vectorThe two-dimensional vector whose squared length is to be computed.

◆ normalize()

static Vector2 RVO.RVOMath.normalize ( Vector2  vector)
inlinestatic

Computes the normalization of the specified two-dimensional vector.

Returns
The normalization of the two-dimensional vector.
Parameters
vectorThe two-dimensional vector whose normalization is to be computed.

The documentation for this struct was generated from the following file: