VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
pose.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2025-2026 Arnis Lektauers
3//
4// Created by Arnis Lektauers 02.01.2026
5//
6#pragma once
7
8#include "core/math/vector3.h"
9
10namespace visutwin::canvas
11{
15 class Pose
16 {
17 public:
18 // Sets the pose to look in the direction of the given vector
19 Pose* look(const Vector3& from, const Vector3& to);
20
21 private:
22 Vector3 _position;
23
24 // The angles of the pose in degrees calculated from the forward vector
25 Vector3 _angles;
26
27 // The focus distance from the position to the pose
28 float _distance;
29 };
30}
Pose * look(const Vector3 &from, const Vector3 &to)
Definition pose.cpp:10
3D vector for positions, directions, and normals with multi-backend SIMD acceleration.
Definition vector3.h:29