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/cube.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libdimension/cube.c') diff --git a/libdimension/cube.c b/libdimension/cube.c index 4c1b955..c455467 100644 --- a/libdimension/cube.c +++ b/libdimension/cube.c @@ -26,12 +26,12 @@ #include "dimension.h" #include -/** Intersection callback for a cube. */ +/// Intersection callback for a cube. static bool dmnsn_cube_intersection_fn(const dmnsn_object *cube, dmnsn_line line, dmnsn_intersection *intersection) { - /* Clip the given line against the X, Y, and Z slabs */ + // Clip the given line against the X, Y, and Z slabs dmnsn_vector nmin, nmax; double tmin, tmax; @@ -120,7 +120,7 @@ dmnsn_cube_intersection_fn(const dmnsn_object *cube, dmnsn_line line, } } -/** Inside callback for a cube. */ +/// Inside callback for a cube. static bool dmnsn_cube_inside_fn(const dmnsn_object *cube, dmnsn_vector point) { @@ -129,7 +129,7 @@ dmnsn_cube_inside_fn(const dmnsn_object *cube, dmnsn_vector point) && point.z > -1.0 && point.z < 1.0; } -/** Boundary callback for a cube. */ +/// Boundary callback for a cube. static dmnsn_bounding_box dmnsn_cube_bounding_fn(const dmnsn_object *object, dmnsn_matrix trans) { @@ -137,14 +137,14 @@ dmnsn_cube_bounding_fn(const dmnsn_object *object, dmnsn_matrix trans) return dmnsn_transform_bounding_box(trans, box); } -/** Cube vtable. */ +/// Cube vtable. static const dmnsn_object_vtable dmnsn_cube_vtable = { .intersection_fn = dmnsn_cube_intersection_fn, .inside_fn = dmnsn_cube_inside_fn, .bounding_fn = dmnsn_cube_bounding_fn, }; -/* Allocate a new cube object */ +// Allocate a new cube object dmnsn_object * dmnsn_new_cube(dmnsn_pool *pool) { -- cgit v1.2.3