Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
{
"trickster.fragment.trickster-math-tricks.quaternion": "Quaternion",
"trickster.trick.trickster-math-tricks.math_lib": "Calculation Stratagem",
"trickster_math_tricks.math_trick.extract_x": "Primary Distortion",
"trickster_math_tricks.math_trick.extract_y": "Secondary Distortion",
"trickster_math_tricks.math_trick.extract_z": "Tertiary Distortion",
"trickster_math_tricks.math_trick.extract_w": "Quaternary Distortion",
"trickster_math_tricks.math_trick.normalize": "Regularity Distortion",
"trickster_math_tricks.math_trick.magnitude": "Magnitude Distortion",
"trickster_math_tricks.math_trick.squared_magnitude": "Squared Magnitude Distortion",
"trickster_math_tricks.math_trick.quat_from_axis": "Rotating Distortion",
"trickster_math_tricks.math_trick.quat_from_comp": "Quaternary Absorption Distortion",
"trickster_math_tricks.math_trick.quat_euler": "Quaternary Angle Distortion",
"trickster_math_tricks.math_trick.caster_quaternion": "Rotation Reflection",
"trickster_math_tricks.math_trick.entity_quaternion": "Rotation Ingress"
}
"trickster.revision.trickster-math-tricks.main_revision": "Calculation Revision",
"trickster.trick.trickster-math-tricks.extract_w": "Quaternary Distortion",
"trickster.trick.trickster-math-tricks.squared_magnitude": "Squared Magnitude Distortion",
"trickster-math-tricks.math_trick.quat_from_axis": "Rotating Distortion",
"trickster-math-tricks.math_trick.quat_from_comp": "Quaternary Absorption Distortion",
"trickster-math-tricks.math_trick.quat_euler": "Quaternary Angle Distortion",
"trickster-math-tricks.math_trick.caster_quaternion": "Rotation Reflection",
"trickster-math-tricks.math_trick.entity_quaternion": "Rotation Ingress"
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
{
"trickster.fragment.trickster-math-tricks.quaternion": "四元数",
"trickster.trick.trickster-math-tricks.math_lib": "计算之谋略",
"trickster_math_tricks.math_trick.extract_x": "甲元之曲变",
"trickster_math_tricks.math_trick.extract_y": "乙元之曲变",
"trickster_math_tricks.math_trick.extract_z": "丙元之曲变",
"trickster_math_tricks.math_trick.extract_w": "丁元之曲变",
"trickster_math_tricks.math_trick.normalize": "归一之曲变",
"trickster_math_tricks.math_trick.magnitude": "模长之曲变",
"trickster_math_tricks.math_trick.squared_magnitude": "模方之曲变",
"trickster_math_tricks.math_trick.quat_from_axis": "旋转之曲变",
"trickster_math_tricks.math_trick.quat_from_comp": "四元吸收之曲变",
"trickster_math_tricks.math_trick.quat_euler": "四元角之曲变",
"trickster_math_tricks.math_trick.caster_quaternion": "旋向之错觉",
"trickster_math_tricks.math_trick.entity_quaternion": "旋向之辑流"
}
"trickster.revision.trickster-math-tricks.main_revision": "计算之修订",
"trickster.trick.trickster-math-tricks.extract_w": "丁元之曲变",
"trickster.trick.trickster-math-tricks.squared_magnitude": "模方之曲变",
"trickster-math-tricks.math_trick.quat_from_axis": "旋转之曲变",
"trickster-math-tricks.math_trick.quat_from_comp": "四元吸收之曲变",
"trickster-math-tricks.math_trick.quat_euler": "四元角之曲变",
"trickster-math-tricks.math_trick.caster_quaternion": "旋向之错觉",
"trickster-math-tricks.math_trick.entity_quaternion": "旋向之辑流"
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ This entry contains delusion tricks that retrieve context about the casting enti

;;;;;

<|glyph@trickster-math-tricks:templates|trick-id=trickster-math-tricks:caster_quaternion,title=Rotation Reflection|>

-> quaternion

---
<|trick@trickster-math-tricks:templates|trick-id=trickster-math-tricks:caster_quaternion|>

Returns the head rotation the casting entity has as a quaternion, if available.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Here you can find all the different constants that the addon defines.

;;;;;

<|pattern@trickster:templates|pattern=6\,0\,2\,8\,5,title=Circumferential Revision|>
<|pattern@trickster-math-tricks:templates|pattern=6\,0\,2\,8\,5,title=Circumferential Revision|>

{gray}(Scribing pattern){}

Expand All @@ -20,7 +20,7 @@ Replaces the glyph with the Pi constant.

;;;;;

<|pattern@trickster:templates|pattern=3\,4\,8\,7\,6\,3,title=Circumferential Revision|>
<|pattern@trickster-math-tricks:templates|pattern=3\,4\,8\,7\,6\,3,title=Circumferential Revision|>

{gray}(Scribing pattern){}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ Various tricks related to gathering data about entities.

;;;;;

<|glyph@trickster-math-tricks:templates|trick-id=trickster-math-tricks:entity_quaternion,title=Rotation Ingress|>

entity -> quaternion

---
<|trick@trickster-math-tricks:templates|trick-id=trickster-math-tricks:entity_quaternion|>

Given an entity, returns its head rotation as a quaternion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
```json
{
"title": "Quaternions",
"icon": "minecraft:firework_rocket",
"category": "trickster-math-tricks:math-tricks"
}
```

The following patterns regard quaternion operations.

;;;;;

<|trick@trickster-math-tricks:templates|trick-id=trickster-math-tricks:quat_from_axis|>

Creates a quaternion from an axis and an angle (radians).

;;;;;

<|trick@trickster-math-tricks:templates|trick-id=trickster-math-tricks:quat_from_comp|>

Creates a quaternion from XYZW components.

;;;;;

<|trick@trickster-math-tricks:templates|trick-id=trickster-math-tricks:quat_euler|>

Calculates euler angles (radians) from quaternion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,12 @@ This mod adds only 2 tricks/revisions to the base mod, they have to be used to u

;;;;;

<|glyph@trickster:templates|trick-id=trickster-math-tricks:math_lib,title=Calculation Stratagem|>

pattern, any... -> any

---
<|trick@trickster:templates|trick-id=trickster-math-tricks:math_lib|>

Executes math tricks identified by provided pattern. This is required to call any math tricks added by this addon.

;;;;;

<|pattern@trickster:templates|pattern=3\,4\,0\,3\,6\,4\,7\,6,title=Calculation Revision|>

{gray}(Scribing pattern){}

---
<|revision@trickster:templates|revision-id=trickster-math-tricks:main_revision|>

Runs math revisions identified by existing pattern in the circle. This is required to use any math revisions added by this mod.
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
```json
{
"title": "Quaternions",
"icon": "minecraft:firework_rocket",
"category": "trickster:distortions",
"additional_search_terms": [
"Primary Distortion",
"Secondary Distortion",
"Tertiary Distortion",
"Magnitude Distortion",
"Regularity Distortion"
]
}
```

This category provides specialized functionality for Quaternions.

;;;;;

<|trick@trickster:templates|trick-id=trickster:extract_x|>

Returns the X component of the given fragment.

;;;;;

<|trick@trickster:templates|trick-id=trickster:extract_y|>

Returns the Y component of the given fragment.

;;;;;

<|trick@trickster:templates|trick-id=trickster:extract_z|>

Returns the Z component of the given fragment.

;;;;;

<|trick@trickster:templates|trick-id=trickster-math-tricks:extract_w|>

Returns the W component of the given fragment.

;;;;;

<|trick@trickster:templates|trick-id=trickster:normalize|>

Normalizes the given fragment to a length of one.

;;;;;

<|trick@trickster:templates|trick-id=trickster:length|>

Returns the length of the given fragment.

;;;;;

<|trick@trickster:templates|trick-id=trickster-math-tricks:squared_magnitude|>

Returns the squared length of the given fragment.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@

;;;;;

<|glyph@trickster-math-tricks:templates|trick-id=trickster-math-tricks:caster_quaternion,title=旋向之错觉|>

-> quaternion

---
<|trick@trickster-math-tricks:templates|trick-id=trickster-math-tricks:caster_quaternion|>

若可行,将施法实体头部的旋转方向返回为四元数。
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

;;;;;

<|pattern@trickster:templates|pattern=6\,0\,2\,8\,5,title=圆周之修订|>
<|pattern@trickster-math-tricks:templates|pattern=6\,0\,2\,8\,5,title=圆周之修订|>

{gray}(抄绘图案){}

Expand All @@ -20,7 +20,7 @@

;;;;;

<|pattern@trickster:templates|pattern=3\,4\,8\,7\,6\,3,title=四元数之修订|>
<|pattern@trickster-math-tricks:templates|pattern=3\,4\,8\,7\,6\,3,title=四元数之修订|>

{gray}(抄绘图案){}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@

;;;;;

<|glyph@trickster-math-tricks:templates|trick-id=trickster-math-tricks:entity_quaternion,title=旋向之辑流|>

entity -> quaternion

---
<|trick@trickster-math-tricks:templates|trick-id=trickster-math-tricks:entity_quaternion|>

将所给实体头部的旋转方向返回为四元数。
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
```json
{
"title": "四元数",
"icon": "minecraft:firework_rocket",
"category": "trickster-math-tricks:math-tricks"
}
```

下述图案能对四元数进行运算与操作。

;;;;;

<|trick@trickster-math-tricks:templates|trick-id=trickster-math-tricks:quat_from_axis|>

依照所给旋转轴和角度(弧度)构造四元数。

;;;;;

<|trick@trickster-math-tricks:templates|trick-id=trickster-math-tricks:quat_from_comp|>

依照所给XYZW分量构造四元数。

;;;;;

<|trick@trickster-math-tricks:templates|trick-id=trickster-math-tricks:quat_euler|>

计算所给四元数的欧拉角(弧度)。
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,12 @@

;;;;;

<|glyph@trickster:templates|trick-id=trickster-math-tricks:math_lib,title=计算之谋略|>

pattern, any... -> any

---
<|trick@trickster:templates|trick-id=trickster-math-tricks:math_lib|>

执行给定图案对应的数学戏法。此图案是调用本附属数学戏法的必备步骤。

;;;;;

<|pattern@trickster:templates|pattern=3\,4\,0\,3\,6\,4\,7\,6,title=计算之修订|>

{gray}(抄绘图案){}

---
<|revision@trickster:templates|revision-id=trickster-math-tricks:main_revision|>

运行圆中图案对应的数学修订术。此图案是使用本附属数学修订术的必备步骤。
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
```json
{
"title": "四元数",
"icon": "minecraft:firework_rocket",
"category": "trickster:distortions",
"additional_search_terms": [
"甲元之曲变",
"乙元之曲变",
"丙元之曲变",
"模长之曲变",
"归一之曲变"
]
}
```

本章节介绍了用于处理四元数的特殊功能。

;;;;;

<|trick@trickster:templates|trick-id=trickster:extract_x|>

返回所给片段的X分量。

;;;;;

<|trick@trickster:templates|trick-id=trickster:extract_y|>

返回所给片段的Y分量。

;;;;;

<|trick@trickster:templates|trick-id=trickster:extract_z|>

返回所给片段的Z分量。

;;;;;

<|trick@trickster:templates|trick-id=trickster-math-tricks:extract_w|>

返回所给片段的W分量。

;;;;;

<|trick@trickster:templates|trick-id=trickster:normalize|>

将所给片段归一化至长度为1。

;;;;;

<|trick@trickster:templates|trick-id=trickster:length|>

返回所给片段的长度。

;;;;;

<|trick@trickster:templates|trick-id=trickster-math-tricks:squared_magnitude|>

返回所给片段的长度平方。
Loading
Loading