MCPcopy Create free account
hub / github.com/elftausend/graplot / as_plot

Method as_plot

src/plots/plot3d.rs:42–50  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

40
41impl<const N: usize> Plot3DArg for ([f64; N], [f64; N], [f64; N]) {
42 fn as_plot(&self) -> Plot3D {
43 Plot3D {
44 xs: vec![self.0.to_vec()],
45 ys: vec![self.1.to_vec()],
46 zs: vec![self.2.to_vec()],
47 line_desc: vec![Default::default()],
48 desc: Default::default(),
49 }
50 }
51}
52
53impl<const N: usize> Plot3DArg for ([f64; N], [f64; N], [f64; N], &str) {

Callers 2

newMethod · 0.45
addMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected