📖 Wiki
Documentation and guides for Wiremod
📁Math
6 articles
e2 docs vector2
Vector2 = vec2() Same as vec2(0,0) (1 ops) = vec2( X, Y) Makes a 2D vector (2 ops) = vec2( Xy) Makes a 2D vector (2 ops) = vec2( V) Converts a 3D vector into a 2D vector (the z component is dropped) (
KemGus
e2 docs vector
Vector = vec() Same as vec(0,0,0) (1 ops) = vec( X) Makes a 3D vector (2 ops) = vec( X, Y, Z) Makes a 3D vector (2 ops) = vec( V2) Converts a 2D vector into a 3D vector (the z component is set to 0) (
KemGus
e2 docs quaternion
Quaternion = quat() Creates a zero quaternion (1 ops) = quat( Real) Creates a quaternion with real part equal to N (1 ops) = quat( C) Creates a quaternion with real and "i" parts equal to C (1 ops) =
KemGus
e2 docs matrix
Matrix = matrix2() Creates a 2x2 zero matrix (1 ops) = matrix2( Rv1, Rv2) Creates a matrix with vectors by columns (5 ops) = rowMatrix2( Rv1, Rv2) Creates a 2x2 matrix with 2D vectors by rows (5 ops)
KemGus
e2 docs complex
Complex = comp() Returns complex zero (2 ops) = comp( A) Converts a real number to complex (returns complex number with real part N and imaginary part 0) (2 ops) = comp( A, B) Returns a + b*i (2 ops)
KemGus
e2 docs bitwise
Bitwise = bAnd( A, B) Performs bitwise AND against the two numbers (2 ops) = bOr( A, B) Performs bitwise OR against the two numbers (2 ops) = bXor( A, B) Performs bitwise XOR against the two numbers (
KemGus