src/vector

Search:
Group by:
Source   Edit  

@file orx/code/include/math/orxVector.h:"typedef struct __orxVECTOR_t":891:1571c6f58bc4b8ca144d540649ac7bf1

Procs

proc absv(pvRes: ptr orxVECTOR; pvOp: ptr orxVECTOR): ptr orxVECTOR {.inline,
    cdecl, ...raises: [], tags: [], forbids: [].}
Gets the absolute value of a vector and stores it in another one Source   Edit  
proc add(pvRes: ptr orxVECTOR; pvOp1: ptr orxVECTOR; pvOp2: ptr orxVECTOR): ptr orxVECTOR {.
    inline, cdecl, ...raises: [], tags: [], forbids: [].}
Adds vectors and stores result in a third one Source   Edit  
proc areEqual(pvOp1: ptr orxVECTOR; pvOp2: ptr orxVECTOR): orxBOOL {.inline,
    cdecl, ...raises: [], tags: [], forbids: [].}
Are vectors equal? Source   Edit  
proc clampv(pvRes: ptr orxVECTOR; pvOp: ptr orxVECTOR; pvMin: ptr orxVECTOR;
            pvMax: ptr orxVECTOR): ptr orxVECTOR {.inline, cdecl, ...raises: [],
    tags: [], forbids: [].}
Clamps a vector between two others Source   Edit  
proc copy(pvDst: ptr orxVECTOR; pvSrc: ptr orxVECTOR): ptr orxVECTOR {.inline,
    cdecl, ...raises: [], tags: [], forbids: [].}
Copies a vector onto another one Source   Edit  
proc cross(pvRes: ptr orxVECTOR; pvOp1: ptr orxVECTOR; pvOp2: ptr orxVECTOR): ptr orxVECTOR {.
    inline, cdecl, ...raises: [], tags: [], forbids: [].}
Gets cross product of two vectors Source   Edit  
proc divf(pvRes: ptr orxVECTOR; pvOp1: ptr orxVECTOR; fOp2: orxFLOAT): ptr orxVECTOR {.
    inline, cdecl, ...raises: [], tags: [], forbids: [].}
Divides a vector by a float and stores result in another one Source   Edit  
proc divv(pvRes: ptr orxVECTOR; pvOp1: ptr orxVECTOR; pvOp2: ptr orxVECTOR): ptr orxVECTOR {.
    inline, cdecl, ...raises: [], tags: [], forbids: [].}
Divides a vector by another vector and stores result in a third one Source   Edit  
proc dot(pvOp1: ptr orxVECTOR; pvOp2: ptr orxVECTOR): orxFLOAT {.inline, cdecl,
    ...raises: [], tags: [], forbids: [].}
Gets dot product of two vectors Source   Edit  
proc dot2D(pvOp1: ptr orxVECTOR; pvOp2: ptr orxVECTOR): orxFLOAT {.inline,
    cdecl, ...raises: [], tags: [], forbids: [].}
Gets 2D dot product of two vectors Source   Edit  
proc floorv(pvRes: ptr orxVECTOR; pvOp: ptr orxVECTOR): ptr orxVECTOR {.inline,
    cdecl, ...raises: [], tags: [], forbids: [].}
Gets floored vector and stores the result in another one Source   Edit  
proc fromCartesianToSpherical(pvRes: ptr orxVECTOR; pvOp: ptr orxVECTOR): ptr orxVECTOR {.
    inline, cdecl, ...raises: [], tags: [], forbids: [].}
Transforms a cartesian vector into a spherical one Source   Edit  
proc fromSphericalToCartesian(pvRes: ptr orxVECTOR; pvOp: ptr orxVECTOR): ptr orxVECTOR {.
    inline, cdecl, ...raises: [], tags: [], forbids: [].}
Transforms a spherical vector into a cartesian one Source   Edit  
proc getDistance(pvOp1: ptr orxVECTOR; pvOp2: ptr orxVECTOR): orxFLOAT {.inline,
    cdecl, ...raises: [], tags: [], forbids: [].}
Gets distance between 2 positions Source   Edit  
proc getSize(pvOp: ptr orxVECTOR): orxFLOAT {.inline, cdecl, ...raises: [],
    tags: [], forbids: [].}
Gets vector size Source   Edit  
proc getSquareDistance(pvOp1: ptr orxVECTOR; pvOp2: ptr orxVECTOR): orxFLOAT {.
    inline, cdecl, ...raises: [], tags: [], forbids: [].}
Gets squared distance between 2 positions Source   Edit  
proc getSquareSize(pvOp: ptr orxVECTOR): orxFLOAT {.inline, cdecl, ...raises: [],
    tags: [], forbids: [].}
Gets vector squared size Source   Edit  
proc isNull(pvOp: ptr orxVECTOR): orxBOOL {.inline, cdecl, ...raises: [], tags: [],
    forbids: [].}
Is vector null? Source   Edit  
proc lerpv(pvRes: ptr orxVECTOR; pvOp1: ptr orxVECTOR; pvOp2: ptr orxVECTOR;
           fOp: orxFLOAT): ptr orxVECTOR {.inline, cdecl, ...raises: [], tags: [],
    forbids: [].}
Lerps from one vector to another one using a coefficient Source   Edit  
proc maxv(pvRes: ptr orxVECTOR; pvOp1: ptr orxVECTOR; pvOp2: ptr orxVECTOR): ptr orxVECTOR {.
    inline, cdecl, ...raises: [], tags: [], forbids: [].}
Gets maximum between two vectors Source   Edit  
proc minv(pvRes: ptr orxVECTOR; pvOp1: ptr orxVECTOR; pvOp2: ptr orxVECTOR): ptr orxVECTOR {.
    inline, cdecl, ...raises: [], tags: [], forbids: [].}
Gets minimum between two vectors Source   Edit  
proc modv(pvRes: ptr orxVECTOR; pvOp1: ptr orxVECTOR; pvOp2: ptr orxVECTOR): ptr orxVECTOR {.
    inline, cdecl, ...raises: [], tags: [], forbids: [].}
Gets the modulo of a vector by another vector and stores result in a third one Source   Edit  
proc mul(pvRes: ptr orxVECTOR; pvOp1: ptr orxVECTOR; pvOp2: ptr orxVECTOR): ptr orxVECTOR {.
    inline, cdecl, ...raises: [], tags: [], forbids: [].}
Multiplies a vector by another vector and stores result in a third one Source   Edit  
proc mulf(pvRes: ptr orxVECTOR; pvOp1: ptr orxVECTOR; fOp2: orxFLOAT): ptr orxVECTOR {.
    inline, cdecl, ...raises: [], tags: [], forbids: [].}
Multiplies a vector by a float and stores result in another one Source   Edit  
proc neg(pvRes: ptr orxVECTOR; pvOp: ptr orxVECTOR): ptr orxVECTOR {.inline,
    cdecl, ...raises: [], tags: [], forbids: [].}
Negates a vector and stores result in another one Source   Edit  
proc normalize(pvRes: ptr orxVECTOR; pvOp: ptr orxVECTOR): ptr orxVECTOR {.
    inline, cdecl, ...raises: [], tags: [], forbids: [].}
Normalizes a vector Source   Edit  
proc powv(pvRes: ptr orxVECTOR; pvOp1: ptr orxVECTOR; pvOp2: ptr orxVECTOR): ptr orxVECTOR {.
    inline, cdecl, ...raises: [], tags: [], forbids: [].}
Gets the power of a vector by another vector and stores result in a third one Source   Edit  
proc rec(pvRes: ptr orxVECTOR; pvOp: ptr orxVECTOR): ptr orxVECTOR {.inline,
    cdecl, ...raises: [], tags: [], forbids: [].}
Gets reciprocal (1.0 /) vector and stores the result in another one Source   Edit  
proc remapv(pvRes: ptr orxVECTOR; pvA1: ptr orxVECTOR; pvB1: ptr orxVECTOR;
            pvA2: ptr orxVECTOR; pvB2: ptr orxVECTOR; pvV: ptr orxVECTOR): ptr orxVECTOR {.
    inline, cdecl, ...raises: [], tags: [], forbids: [].}
Remaps a vector value from one interval to another one Source   Edit  
proc rotate2D(pvRes: ptr orxVECTOR; pvOp: ptr orxVECTOR; fAngle: orxFLOAT): ptr orxVECTOR {.
    inline, cdecl, ...raises: [], tags: [], forbids: [].}
Rotates a 2D vector (along Z-axis) Source   Edit  
proc roundv(pvRes: ptr orxVECTOR; pvOp: ptr orxVECTOR): ptr orxVECTOR {.inline,
    cdecl, ...raises: [], tags: [], forbids: [].}
Gets rounded vector and stores the result in another one Source   Edit  
proc set(pvVec: ptr orxVECTOR; fX: orxFLOAT; fY: orxFLOAT; fZ: orxFLOAT): ptr orxVECTOR {.
    inline, cdecl, ...raises: [], tags: [], forbids: [].}
Sets vector XYZ values Source   Edit  
proc setAll(pvVec: ptr orxVECTOR; fValue: orxFLOAT): ptr orxVECTOR {.inline,
    cdecl, ...raises: [], tags: [], forbids: [].}
Sets all the vector coordinates with the given value Source   Edit  
proc sub(pvRes: ptr orxVECTOR; pvOp1: ptr orxVECTOR; pvOp2: ptr orxVECTOR): ptr orxVECTOR {.
    inline, cdecl, ...raises: [], tags: [], forbids: [].}
Subtracts vectors and stores result in a third one Source   Edit  

Templates

template newHSLVECTOR(h, s, l: untyped): orxHSLVECTOR
Source   Edit  
template newHSVVECTOR(h, s, v: untyped): orxHSVVECTOR
Source   Edit  
template newRGBVECTOR(r, g, b: untyped): orxRGBVECTOR
Source   Edit  
template newSPVECTOR(): orxSPVECTOR
Source   Edit  
template newSPVECTOR(rho, theta, phi: untyped): orxSPVECTOR
Source   Edit  
template newVECTOR(): orxVECTOR
Source   Edit  
template newVECTOR(x, y, z: untyped): orxVECTOR
Source   Edit