Skip to content

Commit

Permalink
Merge pull request #69 from madmann91/fix_tri_method_signatures
Browse files Browse the repository at this point in the history
Fix method signatures for `Tri<T, N>`
  • Loading branch information
madmann91 committed Dec 7, 2023
2 parents 3e67662 + 751fab3 commit d63bd07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bvh/v2/tri.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ struct Tri {
: p0(p0), p1(p1), p2(p2)
{}

BVH_ALWAYS_INLINE BBox<T, 3> get_bbox() const { return BBox(p0).extend(p1).extend(p2); }
BVH_ALWAYS_INLINE Vec<T, 3> get_center() const { return (p0 + p1 + p2) * static_cast<T>(1. / 3.); }
BVH_ALWAYS_INLINE BBox<T, N> get_bbox() const { return BBox<T, N>(p0).extend(p1).extend(p2); }
BVH_ALWAYS_INLINE Vec<T, N> get_center() const { return (p0 + p1 + p2) * static_cast<T>(1. / 3.); }
};

/// A 3d triangle, represented as two edges and a point, with an (unnormalized, left-handed) normal.
Expand Down

0 comments on commit d63bd07

Please sign in to comment.