summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2019-03-01 22:35:19 +0200
committerVille Syrjälä <ville.syrjala@linux.intel.com>2019-03-11 22:04:18 +0200
commit6ad708c950bcc55a916971b022fd86bbd6fb32b7 (patch)
tree6ae73a07bb93584c441241762133d12390dacc0e /lib
parent55491b7d8dc2a2f849c7115dc8bafb43dfae3b23 (diff)
lib/igt_matrix: Fix up some docs
Add some missing documentation. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib')
-rw-r--r--lib/igt_matrix.c8
-rw-r--r--lib/igt_matrix.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/lib/igt_matrix.c b/lib/igt_matrix.c
index 35a9c321..6ba59d47 100644
--- a/lib/igt_matrix.c
+++ b/lib/igt_matrix.c
@@ -71,6 +71,9 @@ struct igt_mat4 igt_matrix_identity(void)
/**
* igt_matrix_scale:
+ * @x: x scaling amount
+ * @y: y scaling amount
+ * @z: z scaling amount
*
* Returns:
* An scaling matrix.
@@ -89,6 +92,9 @@ struct igt_mat4 igt_matrix_scale(float x, float y, float z)
/**
* igt_matrix_translate:
+ * @x: x translation amount
+ * @y: y translation amount
+ * @z: z translation amount
*
* Returns:
* A translation matrix.
@@ -110,6 +116,8 @@ struct igt_mat4 igt_matrix_translate(float x, float y, float z)
/**
* igt_matrix_multiply:
+ * @a: Left matrix
+ * @b: Right matrix
*
* Multiply two matrices together. @a is on the left,
* @b on the right.
diff --git a/lib/igt_matrix.h b/lib/igt_matrix.h
index 7a2b9ad8..a56170a2 100644
--- a/lib/igt_matrix.h
+++ b/lib/igt_matrix.h
@@ -55,6 +55,8 @@ struct igt_mat4 igt_matrix_multiply(const struct igt_mat4 *a,
/**
* igt_matrix_transform:
+ * @m: The matrix
+ * @v: The vector
*
* Transform the vector @v by the matrix @m. @m is on the left,
* @v on the right.