Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] Point Properties: Normalization #9

Open
4 tasks
SharonIV0x86 opened this issue Feb 9, 2025 · 1 comment
Open
4 tasks

[Feat] Point Properties: Normalization #9

SharonIV0x86 opened this issue Feb 9, 2025 · 1 comment
Labels
Feature addition Lable for a new Feature Addition good first issue Good for newcomers JWOC Role for JWOC contributors. Medium Medium tag for JWOC contributors.

Comments

@SharonIV0x86
Copy link
Collaborator

Title: Normalize a point vector to a unit vector
Description:
Implement a normalize() function for the Point class to return a normalized version of the point vector (unit vector). Handle the case where the magnitude is zero.
Function Signature:

Point<T, Dim> normalize() const;

File: Point.hpp
Class: Point
Acceptance Criteria:

  • Add the normalize() function to the Point class.

  • Ensure the function works for points of any dimension.

  • Handle the case where the magnitude is zero by throwing an exception or returning a meaningful error.

  • Write unit tests to verify the correctness of the implementation.

@SharonIV0x86 SharonIV0x86 added JWOC Role for JWOC contributors. Medium Medium tag for JWOC contributors. good first issue Good for newcomers Feature addition Lable for a new Feature Addition labels Feb 10, 2025
@kadambaridane
Copy link

@SharonIV0x86 Assign me to this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature addition Lable for a new Feature Addition good first issue Good for newcomers JWOC Role for JWOC contributors. Medium Medium tag for JWOC contributors.
Projects
None yet
Development

No branches or pull requests

2 participants