Skip to content

Basic 3D stuff#64

Open
storrealbac wants to merge 2 commits intomasterfrom
storrealbac/3d
Open

Basic 3D stuff#64
storrealbac wants to merge 2 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?

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