Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
Ecs::TransformOperators Class Reference

#include <Transform.h>

Classes

struct  MatrixTransformComponent

Static Public Member Functions

static glm::vec3 getPosition (const glm::mat4 &matrix)
static glm::quat getRotation (const glm::mat4 &matrix)
static glm::vec3 getRotationEuler (const glm::mat4 &matrix)
static glm::vec3 getScale (const glm::mat4 &matrix)
static void setPosition (Ecs::LocalTransform &transform, const glm::vec3 &newPosition)
static void setRotation (Ecs::LocalTransform &transform, const glm::vec3 &newRotation)
static void setRotation (Ecs::LocalTransform &transform, const glm::quat &newQuaternion)
static void setScale (Ecs::LocalTransform &transform, const glm::vec3 &newScale)

Static Private Member Functions

static MatrixTransformComponent extractComponents (const glm::mat4 &matrix)

Detailed Description

Definition at line 14 of file Transform.h.

Member Function Documentation

◆ extractComponents()

◆ getPosition()

glm::vec3 Ecs::TransformOperators::getPosition ( const glm::mat4 & matrix)
static

Definition at line 297 of file Transform.cpp.

Referenced by EngineCore::Actor::getActorLocation(), EngineCore::SceneNode::setWorldRotation(), and EngineCore::SceneNode::setWorldScale().

Here is the caller graph for this function:

◆ getRotation()

glm::quat Ecs::TransformOperators::getRotation ( const glm::mat4 & matrix)
static

Definition at line 302 of file Transform.cpp.

Referenced by getRotationEuler(), EngineCore::SceneNode::rotateWorld(), EngineCore::SceneNode::setWorldPosition(), and EngineCore::SceneNode::setWorldScale().

Here is the caller graph for this function:

◆ getRotationEuler()

glm::vec3 Ecs::TransformOperators::getRotationEuler ( const glm::mat4 & matrix)
static

Definition at line 312 of file Transform.cpp.

References getRotation().

Referenced by EngineCore::Actor::getActorRotation().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getScale()

glm::vec3 Ecs::TransformOperators::getScale ( const glm::mat4 & matrix)
static

Definition at line 317 of file Transform.cpp.

Referenced by EngineCore::Actor::getActorScale(), EngineCore::SceneNode::setWorldPosition(), and EngineCore::SceneNode::setWorldRotation().

Here is the caller graph for this function:

◆ setPosition()

void Ecs::TransformOperators::setPosition ( Ecs::LocalTransform & transform,
const glm::vec3 & newPosition )
static

Definition at line 326 of file Transform.cpp.

References Ecs::LocalTransform::matrix.

Referenced by EngineCore::SceneComponent::SceneComponent(), EngineCore::SceneComponent::SceneComponent(), EngineCore::SceneComponent::SceneComponent(), EngineCore::SceneComponent::SceneComponent(), and EngineCore::SceneNode::setWorldPosition().

Here is the caller graph for this function:

◆ setRotation() [1/2]

void Ecs::TransformOperators::setRotation ( Ecs::LocalTransform & transform,
const glm::quat & newQuaternion )
static

Definition at line 336 of file Transform.cpp.

References Ecs::LocalTransform::matrix.

◆ setRotation() [2/2]

void Ecs::TransformOperators::setRotation ( Ecs::LocalTransform & transform,
const glm::vec3 & newRotation )
static

Definition at line 331 of file Transform.cpp.

References setRotation().

Referenced by EngineCore::SceneComponent::SceneComponent(), EngineCore::SceneComponent::SceneComponent(), EngineCore::SceneComponent::SceneComponent(), setRotation(), and EngineCore::SceneNode::setWorldRotation().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setScale()

void Ecs::TransformOperators::setScale ( Ecs::LocalTransform & transform,
const glm::vec3 & newScale )
static

Definition at line 353 of file Transform.cpp.

References Ecs::LocalTransform::matrix.

Referenced by EngineCore::SceneComponent::SceneComponent(), and EngineCore::SceneNode::setWorldScale().

Here is the caller graph for this function:

The documentation for this class was generated from the following files:
  • /home/magerbeton/Documents/gl3-vulkan/Engine/include/Engine/World/Transform.h
  • /home/magerbeton/Documents/gl3-vulkan/Engine/src/Engine/World/Transform.cpp