Let
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
function trigger(el, eventType) { | |
if (typeof eventType === 'string' && typeof el[eventType] === 'function') { | |
el[eventType](); | |
} else { | |
const event = | |
eventType === 'string' | |
? new Event(eventType, {bubbles: true}) | |
: eventType; | |
el.dispatchEvent(event); | |
} |
Let
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 bpy | |
def print(data): | |
for window in bpy.context.window_manager.windows: | |
screen = window.screen | |
for area in screen.areas: | |
if area.type == 'CONSOLE': | |
override = {'window': window, 'screen': screen, 'area': area} | |
bpy.ops.console.scrollback_append(override, text=str(data), type="OUTPUT") | |
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 { clamp, Node, NodeSpace, Quat, Vec3 } from "cc"; | |
/** | |
* 解析双骨骼(三关节)的 IK 问题。 | |
* 三关节分别称为根关节、中间关节和末端关节。例如,分别对应于大腿、膝盖和脚关节。 | |
* @param root 根关节。 | |
* @param middle 中间关节。 | |
* @param end 末端关节。 | |
* @param target 末端关节要抵达的目标位置(世界空间)。 | |
* @param hint 中间关节的提示位置(世界空间),用于决定中间关节的朝向。 |
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
export function solveTwoBoneIK( | |
a: Node, | |
b: Node, | |
c: Node, | |
target: Vec3, | |
) { | |
const sanityChecker = new TwoBoneIKNodeSanityChecker(a, b, c); | |
const pA = Vec3.clone(a.worldPosition); | |
const pB = Vec3.clone(b.worldPosition); |
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
\documentclass{article} | |
\usepackage[utf8]{inputenc} | |
\usepackage{amsmath} | |
\begin{document} | |
Let RS(denoted as $R$) be "rotation then scale". \\ | |
RS then translation(denoted as $t$): |
-
elementary
-
rudimentary
-
feasible
-
viable
-
impair
-
interconnect
NewerOlder