Registry / utility / cgmath

cgmath

JSON →
library0.18.0rscratesunverified

A linear algebra and mathematics library for computer graphics.

# Cargo.toml [dependencies] cgmath = "0.18.0"
INSTALL
IMPORT
SIG · CGMATH
C
cgmath
utilityrustv0.18.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Matrix4
use cgmath::{Matrix4, Vector3};

Creates an identity matrix and transforms a 3D vector.

use cgmath::{Matrix4, Vector3}; fn main() { let m = Matrix4::identity(); let v = Vector3::new(1.0, 2.0, 3.0); println!("{:?}", m * v.extend(1.0)); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.18.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
cgmath — cargo add cgmath · libregistry