Notes on Installing Microsoft Azure Kinect Sensor and Body Tracking SDKs on Linux PC and NVIDIA Jetson Xavier NX
06.12.2020
Jump to:
from math import pi, cos, sin, sqrt, atan2 | |
def norm2(a, b, c=0.0): | |
return sqrt(a**2 + b**2 + c**2) | |
def ur_axis_angle_to_quat(axis_angle): | |
# https://en.wikipedia.org/wiki/Axis%E2%80%93angle_representation#Unit_quaternions | |
angle = norm2(*axis_angle) | |
axis_normed = [axis_angle[0]/angle, axis_angle[1]/angle, axis_angle[2]/angle] | |
s = sin(angle/2) |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.EventSystems; | |
using UnityEngine.UI; | |
[RequireComponent(typeof(ScrollRect))] | |
public class ScrollRectAutoScroll : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler | |
{ | |
public float scrollSpeed = 10f; | |
private bool mouseOver = false; |
Automated analysis is the main advantage to working with a modern statically typed compiled language like C++. Code analysis tools can inform us when we have implemented an operator overload with a non-canonical form, when we should have made a method const, or when the scope of a variable can be reduced.