Instantly share code, notes, and snippets.

# Nicholas Sterling NicholasSterling

Created December 29, 2022 08:41
fluttering-toast-6811
View main.dart
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
 import 'dart:math'; import 'package:vector_math/vector_math.dart'; // Here we calculate the angle in Z of the midLine // of a woman standing straight up. void main() { var ls = Vector3( 0.5335670709609985, 0.3110794723033905,
Created December 29, 2022 08:34
fluttering-toast-6811
View main.dart
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
 import 'dart:math'; import 'package:vector_math/vector_math.dart'; // Here we calculate the angle in Z of the midLine // of a woman standing straight up. void main() { var ls = Vector3( 0.5335670709609985, 0.3110794723033905,
Created October 28, 2022 17:43
The quaternion you get fromTwoVectors() does not depend on their lengths
View main.dart
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
 //import 'dart:math'; import 'package:vector_math/vector_math.dart'; void main() { var x1 = Vector3(1, 0, 0); var x2 = Vector3(2, 0, 0); //var y = Vector3(0,0,1); var z1 = Vector3(0, 1, 0); var z3 = Vector3(0, 3, 0); var q1 = Quaternion.fromTwoVectors(x1, z1);
Created November 10, 2018 02:37
Compile-time assert macro, taken from https://github.com/oscarlab/graphene/commit/0bd1b6a
View gist:79df7962512abc43fe4a3f49201d53b2
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
 #define COMPILE_TIME_ASSERT(pred) switch(0){case 0:case pred:;}
Created November 7, 2018 01:37
Visual Studio Code (vscode) configuration for working with kernel modules on Ubuntu 16.04
View c_cpp_properties.json
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