MiniQuake2

src/miniquake2/game/world/vector.ml

Provides miniquake2 game world vector facilities for this project.

Package
miniquake2.game.world.vector
Reachable
Yes

Imports

Declarations

add

function add(first, second)

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

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

View source

copy

function copy(value)

Performs the copy operation for the miniquake2 game world 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 world vector module.

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

View source

equal

function equal(first, second)

Report whether equal.

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 world vector module.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.

View source

movedir

function movedir(angles)

Return the movedir value.

ParameterTypeDefaultDescription
anglesdynamic—angles value consumed by this operation.

View source

multiplyAdd

function multiplyAdd(value, amount, direction)

Performs the multiplyAdd operation for the miniquake2 game world 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 world vector module.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.

View source

requireWorldVector

function requireWorldVector(value, operation)

Require world vector.

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

View source

scale

function scale(value, amount)

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

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

View source

setMovedir

function setMovedir(entity)

Convert an authored entity angle to a movement direction and clear the render angles exactly as Quake II's G_SetMovedir does. Brush movers must not retain this angle: it describes translation, not model rotation.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.

View source

subtract

function subtract(first, second)

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

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

View source

toAngles

function toAngles(direction)

Return the to angles.

ParameterTypeDefaultDescription
directiondynamic—direction value consumed by this operation.

View source