Implement Circle header, rename all files to use .hpp extension.

This commit is contained in:
2024-07-31 14:22:10 -04:00
parent 3e607d310d
commit a3d4562dec
88 changed files with 489 additions and 256 deletions

View File

@@ -0,0 +1,24 @@
#pragma once
#include "LineSegment.hpp"
namespace J3ML::Geometry
{
class Line
{
public:
Vector3 Position; /// Specifies the origin of this line.
Vector3 Direction; /// The normalized direction vector of this ray.
public:
static void
ClosestPointLineLine(const Vector3 &v0, const Vector3 &v10, const Vector3 &v2, const Vector3 &v32, float &d,
float &d2);
Vector3 ClosestPoint(const J3ML::Geometry::LineSegment &other, float &d, float &d2) const;
Vector3 GetPoint(float d) const;
Vector3 ClosestPoint(const Vector3 &targetPoint, float &d) const;
};
}