Skip to content

Commit 9f25232

Browse files
committed
Add docs to macro.
1 parent 71a926d commit 9f25232

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/processing_pyo3/src/math.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ pub(crate) fn extract_vec4(args: &Bound<'_, PyTuple>) -> PyResult<Vec4> {
8686
Ok(args.extract::<Vec4Arg>()?.into_vec4())
8787
}
8888

89+
90+
// Implements a PyVecN class with the given name, fields, and underlying glam type,
91+
// including arithmetic operations, indexing, iteration, and common vector methods, etc.
92+
// The `extra` block can be used to add additional methods specific to certain vector types
93+
// (e.g., angle/rotate for Vec2, cross for Vec3).
8994
macro_rules! impl_py_vec {
9095
(
9196
$name:ident, $py_name:literal, $n:literal,

0 commit comments

Comments
 (0)