MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / add

Function add

node-graph/nodes/math/src/lib.rs:84–94  ·  view source on GitHub ↗
(
	_: impl Ctx,
	/// The left-hand side of the addition operation.
	#[implementations(f64, f32, u32, DVec2, f64, DVec2)]
	augend: A,
	/// The right-hand side of the addition operation.
	#[implementati

Source from the content-addressed store, hash-verified

82/// The addition operation (`+`) calculates the sum of two scalar numbers or vectors.
83#[node_macro::node(category("Math: Arithmetic"))]
84fn add<A: Add<B>, B>(
85 _: impl Ctx,
86 /// The left-hand side of the addition operation.
87 #[implementations(f64, f32, u32, DVec2, f64, DVec2)]
88 augend: A,
89 /// The right-hand side of the addition operation.
90 #[implementations(f64, f32, u32, DVec2, DVec2, f64)]
91 addend: B,
92) -> <A as Add<B>>::Output {
93 augend + addend
94}
95
96/// The subtraction operation (`-`) calculates the difference between two scalar numbers or vectors.
97#[node_macro::node(category("Math: Arithmetic"))]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected