22 #ifndef STARK_RESOURCES_FLOOR_FACE_H 23 #define STARK_RESOURCES_FLOOR_FACE_H 25 #include "common/array.h" 26 #include "common/str.h" 29 #include "math/vector3d.h" 31 #include "engines/stark/resources/object.h" 48 static const Type::ResourceType TYPE = Type::kFloorFace;
54 void onAllLoaded()
override;
57 bool isPointInside(
const Math::Vector3d &point)
const;
60 void computePointHeight(Math::Vector3d &point)
const;
70 bool intersectRay(
const Math::Ray &ray, Math::Vector3d &intersection)
const;
75 float distanceToRay(
const Math::Ray &ray)
const;
78 float getDistanceFromCamera()
const;
81 int16 getVertexIndex(int32 index)
const;
94 FloorEdge *findNearestEdge(
const Math::Vector3d &point)
const;
97 Math::Vector3d getCenter()
const;
100 bool hasVertices()
const;
103 void enable(
bool enable);
104 bool isEnabled()
const;
108 void printData()
override;
111 Math::Vector3d _vertices[3];
115 float _distanceFromCamera;
122 #endif // STARK_RESOURCES_FLOOR_FACE_H
Definition: floorface.h:46