Skip to content

Line and Planes#15

Open
Ycidia wants to merge 15 commits intomainfrom
14-lines-and-planes
Open

Line and Planes#15
Ycidia wants to merge 15 commits intomainfrom
14-lines-and-planes

Conversation

@Ycidia
Copy link
Collaborator

@Ycidia Ycidia commented Aug 17, 2025

Add line and plane functionality to the code base

@Ycidia Ycidia requested a review from sci-code-711 August 17, 2025 19:07
@Ycidia Ycidia linked an issue Aug 17, 2025 that may be closed by this pull request
Copy link
Owner

@sci-code-711 sci-code-711 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just looked at the line stuff so far. General codification is good just a few readability and test cases things

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know why there are changes in this file? Can you also look if this file should even be included I the repo?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a yellow squiggle under the compiler path. The comment is the message that comes up. It seem to only configure the c\c++ extentions in vscode so probably not?

Copy link
Owner

@sci-code-711 sci-code-711 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could really do with some docstrings for the methods especially as things are getting a little more complicated with lines and planes and intersections

source/plane.hpp Outdated
Vector intersection(const Line &that) const;
};

bool between(const Line line, const Plane &plane1, const Plane &plane2);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does the between method do?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tells you whether a line goes between two planes. If the planes of the bounding box are perpendicular to the screen then it will never intersect them. In such a case you would need to know whether the line goes between the planes as to whether the clicking line intersects with the bounding box. At least, that is what I believe.

Copy link
Owner

@sci-code-711 sci-code-711 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks good. Only other thing I would want to do is go through the test cases and maybe add some more. Really good job on this though

@Ycidia
Copy link
Collaborator Author

Ycidia commented Aug 21, 2025

Redundant if blocks should have been removed and I put all the unittests in a namespace.

@sci-code-711
Copy link
Owner

Approved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lines and Planes

2 participants