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
/* | |
vec3 rot = vec3( 90.0, 90.0, 0.0 ); | |
vec3 pos = position * scale; | |
vec3 norm = normal; | |
eulerRotation( rot * DEG2RAD, pos, norm ); | |
*/ | |
const float DEG2RAD = 0.01745329251; // PI / 180 | |
// Apply YXZ radian rotation |
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
import { useController, UseControllerProps } from "react-hook-form"; | |
import { Switch } from '@headlessui/react' | |
type Props = { | |
label?: string; | |
enabledLabel?: string; | |
disabledLabel?: string; | |
title?: string; | |
}; |
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
/** | |
Playground illustrating incorrect result for secondsFromGMT for 8 July 1842 in time zone Europe/Rome. A current date is included to illustrate that secondsFromGMT and the output of the date formatter are in agreement. | |
For 8 July 1842, expected output is: | |
Describing date: 1842-07-09 05:39:33 +0000 | |
Seconds from GMT: 2996 | |
Abbreviation: LMT | |
Formatted string: 6:29:29 AM Jul 09, 1842, GMT+00:49:56 | |