Added commands to main file and corrected the references

This commit is contained in:
Karma Riuk 2023-05-28 10:10:28 +02:00
parent 7c345469e9
commit c2ad625c40
2 changed files with 38 additions and 21 deletions

View File

@ -1,10 +1,34 @@
\documentclass{usiinfbachelorproject} \documentclass{usiinfbachelorproject}
\usepackage[]{caption}
\usepackage[]{url}
\usepackage[]{subcaption}
\usepackage[]{float}
\usepackage{tikz}
\usepackage{tkz-euclide}
\usetikzlibrary{external,shapes,through}
\tikzexternalize[prefix=figures/]
\tikzstyle{none}=[]
\input{./tikzs/styles.tikzstyles}
\pgfdeclarelayer{nodelayer}
\pgfdeclarelayer{edgelayer}
\pgfsetlayers{edgelayer,nodelayer,main}
\graphicspath{{../figures/}{./figures/}}
\newcommand*{\figref}[1]{\figurename~\ref{#1}}
\captionsetup{labelfont={bf}} \captionsetup{labelfont={bf}}
% \newcommand{\diff}{\mathop{}\!\mathrm{d}}
\newcommand{\diff}{\mathop{}\!\mathrm{d}}
\author{Arnaud Fauconnet} \author{Arnaud Fauconnet}
\title{From flying balls to colliding polygons} \title{From Flying Balls to Colliding Polygons}
\subtitle{2D Physics Engine: Rigid Body Simulation} \subtitle{2D Physics Engine: Rigid Body Simulation}
\versiondate{\today} \versiondate{\today}
@ -13,6 +37,13 @@
Switzerland]{Prof.}{Antonio}{Carzaniga} Switzerland]{Prof.}{Antonio}{Carzaniga}
\end{committee} \end{committee}
\newcommand{\inputtikz}[2][1]{
\resizebox{#1 \textwidth}{!}{
\tikzsetnextfilename{#2}
\input{../tikzs/#2.tikz}
}
}
\abstract { \abstract {
Physics engines are a fun and interesting way to learn about a lot of Physics engines are a fun and interesting way to learn about a lot of
different subjects. First the theoretical concepts, such as the equations different subjects. First the theoretical concepts, such as the equations

View File

@ -1,17 +1,3 @@
@misc{Cairo:Docs,
author = {Cairoglyphics},
title = {Cairo Documentation},
year = 2016,
url = {https://www.cairographics.org/documentation/},
urldate = {2023-03-10}
}
@misc{Cairo:Tutorial,
author = {Cairoglyphics},
title = {Cairo Tutorial},
year = 2012,
url = {https://www.cairographics.org/tutorial/},
urldate = {2023-03-10}
}
@article{collisions, @article{collisions,
author = "Jiménez, Juan José and Segura, Rafael J. and Feito, Francisco R.", author = "Jiménez, Juan José and Segura, Rafael J. and Feito, Francisco R.",
title = "Efficient collision detection between 2D polygons", title = "Efficient collision detection between 2D polygons",
@ -27,10 +13,10 @@
journal={WWW page}, journal={WWW page},
year={2001} year={2001}
} }
@article{jovanoski2008gilbert, @article{collision:resolution,
title={The Gilbert--Johnson--Keerthi (GJK) Algorithm}, title = "Physics Part 3: Collision Response",
author={Jovanoski, Davor}, author = "Chris Hecker",
journal={Department of Computer Science, University of Salzburg}, journal = "Game Developer Magazine",
pages={13}, year = 1997,
year={2008} url = {http://www.chrishecker.com/images/e/e7/Gdmphys3.pdf},
} }