This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include "cinder/Tween.h" | |
//================================================== | |
// Anim<T> + T | |
// | |
template<typename T> | |
inline T operator + (const ci::Anim<T> & tween, const T & value) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vector<float> degs = {60, 120, 180, 240, 300, 360, 420, 480, -60, -120, -180, -240, -300, -360, -420, -480}; | |
// angleAxis -> angle | |
for (float deg : degs) { | |
float rad = glm::radians(deg); | |
glm::quat rot = glm::angleAxis(rad, glm::vec3(0, 0, 1)); | |
std::cout << "angleAxis -> angle: " + to_string(deg) + " deg -> " + to_string(glm::degrees(glm::angle(rot))) + " deg" << std::endl; | |
} | |
// angleAxis -> roll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" InitialTargets="CreateUserConfig; AddCinderDir"> | |
<ImportGroup Label="PropertySheets" /> | |
<ItemDefinitionGroup /> | |
<PropertyGroup Label="FileReferences"> | |
<!-- Default Cinder path relative to this file; Override in custom props file --> | |
<CinderDir>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)\..'))</CinderDir> | |
<UserFile>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)\UserConfig.props'))</UserFile> | |
</PropertyGroup> |
OlderNewer