mirror of
https://github.com/overte-org/overte.git
synced 2025-07-25 13:09:21 +02:00
33 lines
794 B
C++
33 lines
794 B
C++
//
|
|
// Vec3.h
|
|
// hifi
|
|
//
|
|
// Created by Brad Hefta-Gaub on 1/29/14
|
|
// Copyright (c) 2014 High Fidelity, Inc. All rights reserved.
|
|
//
|
|
// Scriptable Vec3 class library.
|
|
//
|
|
//
|
|
|
|
#ifndef __hifi__Vec3__
|
|
#define __hifi__Vec3__
|
|
|
|
#include <glm/glm.hpp>
|
|
#include <glm/gtc/quaternion.hpp>
|
|
#include <QtCore/QObject>
|
|
|
|
/// Scriptable interface a Vec3ernion helper class object. Used exclusively in the JavaScript API
|
|
class Vec3 : public QObject {
|
|
Q_OBJECT
|
|
|
|
public slots:
|
|
glm::vec3 multiply(const glm::vec3& v1, const glm::vec3& v2);
|
|
glm::vec3 multiply(const glm::vec3& v1, float f);
|
|
glm::vec3 multiplyQbyV(const glm::quat& q, const glm::vec3& v);
|
|
glm::vec3 sum(const glm::vec3& v1, const glm::vec3& v2);
|
|
float length(const glm::vec3& v);
|
|
};
|
|
|
|
|
|
|
|
#endif /* defined(__hifi__Vec3__) */
|