-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Range1D becomes special case of RangeXD (#3023)
This PR reimplements the `Range1D` as a special case of the more general `RangeXD`. Most importantly, I'm switching the `operator[]` of `RangeXD` to return a 1-dim `RangeXD` with the vector type set to a simple "simple element" container that has reference semantics. Finally, `Range1D` is typedef'ed to `RangeXD` of dimension 1. One remaining question is that the naming `XD` is not super well aligned with the rest of our naming (e.g. `Vector2`, `Vector3`), but I'm not sure if `Range`/`Range1` is any better.
- Loading branch information
1 parent
248a2ab
commit 572c49a
Showing
19 changed files
with
436 additions
and
383 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.