Skip to content

Commit

Permalink
Add implementation notes
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Aug 12, 2022
1 parent 4e2f55b commit c1ae5e1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/fj-kernel/src/algorithms/cast_ray/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ pub use self::segment::RaySegmentHit;
use fj_math::Point;

/// Implemented by types that support ray casting
///
/// # Implementation Note
///
/// This is basically a more limited version of [`Intersect`]. It probably makes
/// sense to migrate all of this trait's implementations to [`Intersect`] and
/// remove this trait.
///
/// [`Intersect`]: super::intersect::Intersect
pub trait CastRay<const D: usize> {
/// The type that describes a hit of the ray on the implementing type
type Hit;
Expand Down
8 changes: 8 additions & 0 deletions crates/fj-kernel/src/algorithms/contains/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
mod face_point;

/// Test whether an object or shape contains another
///
/// # Implementation Note
///
/// This is basically a more limited version of [`Intersect`]. It probably makes
/// sense to migrate all of this trait's implementations to [`Intersect`] and
/// remove this trait.
///
/// [`Intersect`]: super::intersect::Intersect
pub trait Contains<T> {
/// Test whether an object or shape contains another
///
Expand Down

0 comments on commit c1ae5e1

Please sign in to comment.