Files
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.
| Parameter | Type | Default | Description |
|---|
first | dynamic | — | first value consumed by this operation. |
second | dynamic | — | second value consumed by this operation. |
View source
# copy
function copy(value)
Performs the copy operation for the miniquake2 game world vector module.
| Parameter | Type | Default | Description |
|---|
value | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
first | dynamic | — | first value consumed by this operation. |
second | dynamic | — | second value consumed by this operation. |
View source
# equal
function equal(first, second)
Report whether equal.
| Parameter | Type | Default | Description |
|---|
first | dynamic | — | first value consumed by this operation. |
second | dynamic | — | second value consumed by this operation. |
View source
# length
function length(value)
Performs the length operation for the miniquake2 game world vector module.
| Parameter | Type | Default | Description |
|---|
value | dynamic | — | Value consumed or transformed by the operation. |
View source
# movedir
function movedir(angles)
Return the movedir value.
| Parameter | Type | Default | Description |
|---|
angles | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
value | dynamic | — | Value consumed or transformed by the operation. |
amount | dynamic | — | amount value consumed by this operation. |
direction | dynamic | — | direction value consumed by this operation. |
View source
# normalized
function normalized(value)
Performs the normalized operation for the miniquake2 game world vector module.
| Parameter | Type | Default | Description |
|---|
value | dynamic | — | Value consumed or transformed by the operation. |
View source
# requireWorldVector
function requireWorldVector(value, operation)
Require world vector.
| Parameter | Type | Default | Description |
|---|
value | dynamic | — | Value consumed or transformed by the operation. |
operation | dynamic | — | operation value consumed by this operation. |
View source
# scale
function scale(value, amount)
Performs the scale operation for the miniquake2 game world vector module.
| Parameter | Type | Default | Description |
|---|
value | dynamic | — | Value consumed or transformed by the operation. |
amount | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
entity | dynamic | — | entity value consumed by this operation. |
View source
# subtract
function subtract(first, second)
Performs the subtract operation for the miniquake2 game world vector module.
| Parameter | Type | Default | Description |
|---|
first | dynamic | — | first value consumed by this operation. |
second | dynamic | — | second value consumed by this operation. |
View source
# toAngles
function toAngles(direction)
Return the to angles.
| Parameter | Type | Default | Description |
|---|
direction | dynamic | — | direction value consumed by this operation. |
View source