From a22560c3ccaf19261b5c40fdcab36d2d22426986 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 7 Jun 2014 16:58:20 -0400 Subject: Use // comments when possible. --- libdimension/plane.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libdimension/plane.c') diff --git a/libdimension/plane.c b/libdimension/plane.c index c09dd70..5428485 100644 --- a/libdimension/plane.c +++ b/libdimension/plane.c @@ -27,13 +27,13 @@ #include #include -/** Plane type. */ +/// Plane type. typedef struct { dmnsn_object object; dmnsn_vector normal; } dmnsn_plane; -/** Returns the closest intersection of `line' with `plane'. */ +/// Returns the closest intersection of `line' with `plane'. static bool dmnsn_plane_intersection_fn(const dmnsn_object *object, dmnsn_line line, dmnsn_intersection *intersection) @@ -53,7 +53,7 @@ dmnsn_plane_intersection_fn(const dmnsn_object *object, dmnsn_line line, return false; } -/** Return whether a point is inside a plane. */ +/// Return whether a point is inside a plane. static bool dmnsn_plane_inside_fn(const dmnsn_object *object, dmnsn_vector point) { @@ -61,14 +61,14 @@ dmnsn_plane_inside_fn(const dmnsn_object *object, dmnsn_vector point) return dmnsn_vector_dot(point, plane->normal) < 0.0; } -/** Plane bounding callback. */ +/// Plane bounding callback. static dmnsn_bounding_box dmnsn_plane_bounding_fn(const dmnsn_object *object, dmnsn_matrix trans) { return dmnsn_infinite_bounding_box(); } -/** Plane vtable. */ +/// Plane vtable. static const dmnsn_object_vtable dmnsn_plane_vtable = { .intersection_fn = dmnsn_plane_intersection_fn, .inside_fn = dmnsn_plane_inside_fn, -- cgit v1.2.3