MiniQuake2

src/miniquake2/game/weapons/vector.ml

Provides miniquake2 game weapons vector facilities for this project.

Package
miniquake2.game.weapons.vector
Reachable
Yes

Imports

Declarations

add

function add(first, second)

Adds add to the state managed by the miniquake2 game weapons vector module.

ParameterTypeDefaultDescription
firstdynamic—first value consumed by this operation.
seconddynamic—second value consumed by this operation.

View source

angleVectors

function angleVectors(angles)

Return the angle vectors value.

ParameterTypeDefaultDescription
anglesdynamic—angles value consumed by this operation.

View source

copy

function copy(value)

Performs the copy operation for the miniquake2 game weapons vector module.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.

View source

dot

function dot(first, second)

Performs the dot operation for the miniquake2 game weapons vector module.

ParameterTypeDefaultDescription
firstdynamic—first value consumed by this operation.
seconddynamic—second value consumed by this operation.

View source

length

function length(value)

Performs the length operation for the miniquake2 game weapons vector module.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.

View source

midpoint

function midpoint(target)

Return the midpoint value.

ParameterTypeDefaultDescription
targetdynamic—target value consumed by this operation.

View source

multiplyAdd

function multiplyAdd(value, amount, direction)

Performs the multiplyAdd operation for the miniquake2 game weapons vector module.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.
amountdynamic—amount value consumed by this operation.
directiondynamic—direction value consumed by this operation.

View source

normalized

function normalized(value)

Performs the normalized operation for the miniquake2 game weapons vector module.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.

View source

scale

function scale(value, amount)

Performs the scale operation for the miniquake2 game weapons vector module.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.
amountdynamic—amount value consumed by this operation.

View source

subtract

function subtract(first, second)

Performs the subtract operation for the miniquake2 game weapons vector module.

ParameterTypeDefaultDescription
firstdynamic—first value consumed by this operation.
seconddynamic—second value consumed by this operation.

View source

toArray

function toArray(value)

Return the to array value.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.

View source

vectorToAngles

function vectorToAngles(direction)

Return the vector to angles.

ParameterTypeDefaultDescription
directiondynamic—direction value consumed by this operation.

View source

weaponVectorComponents

function weaponVectorComponents(value, operation)

Validate the dynamic MiniLang value once and copy every component into a scalar array before callers allocate a result or enter another helper.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.
operationdynamic—operation value consumed by this operation.

View source