Skip to content

shiro1307/Vector3D-mini-in-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Vec3-CPP

A lightweight 3D vector class in C++ with basic linear algebra operations.

Features

  • Vector addition & subtraction
  • Dot and cross product
  • Magnitude & normalization
  • Scalar operations
  • Angle & projection
  • Usage
    Vec3 A(1,1,0);
    Vec3 B(1,0,0);
    
    cout << A + B << endl;
    cout << A.dot(B) << endl;
    cout << A.cross(B) << endl;
    cout << A.unit() << endl;
    

About

Lightweight C++ Vec3 class supporting vector arithmetic, dot/cross products, normalization, projection, and angle calculations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages