PeriDyno 1.0.0
Loading...
Searching...
No Matches
Frame.cpp
Go to the documentation of this file.
1#pragma once
2#include "Frame.h"
3
4namespace dyno
5{
6
7 template<typename TDataType>
9 {
10 m_coord = Coord(0);
11 m_rotation = Matrix::identityMatrix();
12 }
13
14 template<typename TDataType>
16 {
17 m_coord = c;
18 }
19
20
21 template<typename TDataType>
23 {
24 m_coord = frame.m_coord;
25 m_rotation = frame.m_rotation;
26 }
27
29}
30
#define DEFINE_CLASS(name)
Definition Object.h:140
A frame represents a point equipped with the orientation.
Definition Frame.h:14
void setCenter(Coord c)
Definition Frame.cpp:15
void copyFrom(Frame< TDataType > &frame)
Definition Frame.cpp:22
TDataType::Coord Coord
Definition Frame.h:17
Coord m_coord
Definition Frame.h:33
Matrix m_rotation
Definition Frame.h:34
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25