mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-10 20:07:22 +02:00
27 lines
701 B
C++
27 lines
701 B
C++
//
|
|
// PlaneShape.h
|
|
// libraries/shared/src
|
|
//
|
|
// Created by Andrzej Kapolka on 4/9/2014.
|
|
// Copyright 2014 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_PlaneShape_h
|
|
#define hifi_PlaneShape_h
|
|
|
|
#include "Shape.h"
|
|
|
|
class PlaneShape : public Shape {
|
|
public:
|
|
PlaneShape(const glm::vec4& coefficients = glm::vec4(0.0f, 1.0f, 0.0f, 0.0f));
|
|
|
|
glm::vec3 getNormal() const;
|
|
glm::vec4 getCoefficients() const;
|
|
|
|
bool findRayIntersection(const glm::vec3& rayStart, const glm::vec3& rayDirection, float& distance) const;
|
|
};
|
|
|
|
#endif // hifi_PlaneShape_h
|