PeriDyno 1.0.0
Loading...
Searching...
No Matches
Frame.h
Go to the documentation of this file.
1#pragma once
3#include "Vector.h"
4
5namespace dyno
6{
11
12 template<typename TDataType>
13 class Frame : public TopologyModule
14 {
15 public:
16 typedef typename TDataType::Real Real;
17 typedef typename TDataType::Coord Coord;
18 typedef typename TDataType::Matrix Matrix;
19
20 Frame();
21 ~Frame() override {};
22
23 void copyFrom(Frame<TDataType>& frame);
24
25 void setCenter(Coord c);
26
27 Coord getCenter(){ return m_coord; }
28
29 void setOrientation(Matrix mat) { m_rotation = mat; }
31
32 protected:
35 };
36}
37
A frame represents a point equipped with the orientation.
Definition Frame.h:14
void setCenter(Coord c)
Definition Frame.cpp:15
~Frame() override
Definition Frame.h:21
Coord getCenter()
Definition Frame.h:27
void copyFrom(Frame< TDataType > &frame)
Definition Frame.cpp:22
TDataType::Coord Coord
Definition Frame.h:17
Coord m_coord
Definition Frame.h:33
TDataType::Real Real
Definition Frame.h:16
TDataType::Matrix Matrix
Definition Frame.h:18
void setOrientation(Matrix mat)
Definition Frame.h:29
Matrix getOrientation()
Definition Frame.h:30
Matrix m_rotation
Definition Frame.h:34
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25