MCPcopy Create free account
hub / github.com/algorithm-archivists/algorithm-archive / new

Method new

contents/barnsley/code/rust/barnsley.rs:16–18  ·  view source on GitHub ↗
(x: f64, y: f64, z: f64)

Source from the content-addressed store, hash-verified

14
15impl Point3 {
16 fn new(x: f64, y: f64, z: f64) -> Self {
17 Self { x, y, z }
18 }
19
20 fn matrix_mul(self, rhs: Vec<Point3>) -> Self {
21 let x = rhs[0].x * self.x + rhs[0].y * self.y + rhs[0].z * self.z;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected