This file contains hidden or 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 hidden or 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 hidden or 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> |
This file contains hidden or 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
| @echo off | |
| setlocal enabledelayedexpansion | |
| rem Set default values | |
| set "width=1920" | |
| set "height=1080" | |
| set "framerate=30" | |
| set "bitrate=25000k" | |
| set "inputdir=%CD%" | |
| set "outputdir=%CD%" |
This file contains hidden or 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
| (() => { | |
| // PASTE THIS INTO DEV TOOLS (CTRL+SHIFT+I) | |
| // 1. Cancel the previous observer if it exists | |
| window.activeRetryObserver?.disconnect(); | |
| // 2. Define the click logic in a private closure | |
| const clickRetry = () => { | |
| [...document.querySelectorAll('button.bg-primary')] | |
| .find(b => b.innerText.trim() === 'Retry') | |
| ?.click(); | |
| }; |
OlderNewer