ChrisOS Research ProjectOperating systems · language systems · graphics · machine emulation
DOCUMENTATION ARCHIVEMAIN BRANCH
ChrisOS/Source reference: LIB/MATH3D.CC

Source reference: LIB/MATH3D.CC

Deterministic source record. The complete textual file is reproduced below; this page does not replace architectural interpretation in the authored chapters.

File identity

Field Value
Path LIB/MATH3D.CC
Lines 13
Bytes 246
SHA-256 cd5614b26fb2852023d5f688e23bdd5945dbb1cf2657ecc9d925b0646d48c182
ChrisOS revision da3df29cb397932c43d32373871fb9380e688ade

Detected syntactic dependencies

Line Include
— No preprocessor include detected.

Detected symbols

Line Symbol
4 v3_dot
8 v3_len2

Complete source

The following block is the complete textual file at the recorded revision. No lines are elided, abbreviated or paraphrased.

#ifndef MATH3D_CC_H
#define MATH3D_CC_H

float v3_dot(float ax, float ay, float az, float bx, float by, float bz) {
    return ax * bx + ay * by + az * bz;
}

float v3_len2(float x, float y, float z) {
    return x * x + y * y + z * z;
}

#endif

Role of this record

The atlas guarantees file-by-file traceability. Responsibility, invariants, ownership, concurrency, security, performance and subsystem interactions belong in authored chapters and must cite this file when applicable.

Document record ID: source-cd5614b26fb28520 Reviewed source: da3df29cb397 Class: generated-source-reference