Skip to content

Basic 3D stuff#64

Merged
storrealbac merged 3 commits intomasterfrom
storrealbac/3d
Feb 10, 2026
Merged

Basic 3D stuff#64
storrealbac merged 3 commits intomasterfrom
storrealbac/3d

Conversation

@storrealbac
Copy link
Collaborator

No description provided.

point3d<T> unit() const { return *this / this->abs(); }

double proj(const point3d<T> &b) const { return (double)dot(b) / b.abs(); }
double angle(const point3d<T> &b) const {
Copy link
Contributor

Choose a reason for hiding this comment

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

you should use long double, shouldn't you?

Copy link
Contributor

@CharlesLakes CharlesLakes left a comment

Choose a reason for hiding this comment

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

LGTM

@storrealbac storrealbac merged commit bea5e21 into master Feb 10, 2026
3 checks passed
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.

2 participants