Implement Polyhedron header
This commit is contained in:
10
include/J3ML/Geometry/Line.h
Normal file
10
include/J3ML/Geometry/Line.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
namespace J3ML::Geometry
|
||||
{
|
||||
class Line
|
||||
{
|
||||
|
||||
};
|
||||
}
|
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
#include <J3ML/LinearAlgebra/Vector3.h>
|
||||
#include "Shape.h"
|
||||
#include "Ray.h"
|
||||
|
||||
|
||||
namespace J3ML::Geometry
|
||||
@@ -25,5 +26,7 @@ namespace J3ML::Geometry
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
bool Intersects(J3ML::Geometry::Ray ray, float *pDouble);
|
||||
};
|
||||
}
|
@@ -66,8 +66,27 @@ namespace J3ML::Geometry
|
||||
bool Intersects(const Sphere&) const;
|
||||
bool Intersects(const Capsule&) const;
|
||||
|
||||
float FaceContainmentDistance2D(int i, Vector3 vector3) const;
|
||||
|
||||
bool IsClosed() const;
|
||||
|
||||
Plane FacePlane(int faceIndex) const;
|
||||
|
||||
std::vector<Polygon> Faces() const;
|
||||
|
||||
int NumEdges() const;
|
||||
|
||||
LineSegment Edge(int edgeIndex) const;
|
||||
|
||||
std::vector<std::pair<int, int>> EdgeIndices() const;
|
||||
|
||||
std::vector<LineSegment> Edges() const;
|
||||
|
||||
Polygon FacePolygon(int faceIndex) const;
|
||||
|
||||
bool IsConvex() const;
|
||||
protected:
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user