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