Skip to content

Commit 21c14a3

Browse files
committed
Change vectors in book to use parens rather than brackets, to match stack display
1 parent daae242 commit 21c14a3

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

Common/src/main/resources/assets/hexcasting/lang/en_us.flatten.json5

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1722,7 +1722,7 @@
17221722
numvec: "Many mathematical operations function on both numbers and vectors. Such arguments are written as \"num|vec\".",
17231723

17241724
"add.1": "Perform addition.",
1725-
"add.2": "As such:$(li)With two numbers at the top of the stack, combines them into their sum.$(li)With a number and a vector, removes the number from the stack and adds it to each element of the vector.$(li)With two vectors, combines them by summing corresponding components into a new vector (i.e. [1, 2, 3] + [0, 4, -1] = [1, 6, 2]).",
1725+
"add.2": "As such:$(li)With two numbers at the top of the stack, combines them into their sum.$(li)With a number and a vector, removes the number from the stack and adds it to each element of the vector.$(li)With two vectors, combines them by summing corresponding components into a new vector (i.e. (1, 2, 3) + (0, 4, -1) = (1, 6, 2)).",
17261726

17271727
"sub.1": "Perform subtraction.",
17281728
"sub.2": "As such:$(li)With two numbers at the top of the stack, combines them into their difference.$(li)With a number and a vector, removes the number from the stack and subtracts it from each element of the vector.$(li)With two vectors, combines them by subtracting each component.$(br2)In all cases, the top of the stack or its components are subtracted $(italic)from/$ the second-from-the-top.",
@@ -1781,10 +1781,10 @@
17811781
"false": "Adds $(thing)False/$ to the top of the stack.",
17821782

17831783
"vec/": {
1784-
x: "The left-hand counter-clockwise pattern adds [1, 0, 0] to the stack; the right-hand clockwise pattern adds [-1, 0, 0].",
1785-
y: "The left-hand counter-clockwise pattern adds [0, 1, 0] to the stack; the right-hand clockwise pattern adds [0, -1, 0].",
1786-
z: "The left-hand counter-clockwise pattern adds [0, 0, 1]; the right-hand clockwise pattern adds [0, 0, -1].",
1787-
"0": "Adds [0, 0, 0] to the stack.",
1784+
x: "The left-hand counter-clockwise pattern adds (1, 0, 0) to the stack; the right-hand clockwise pattern adds (-1, 0, 0).",
1785+
y: "The left-hand counter-clockwise pattern adds (0, 1, 0) to the stack; the right-hand clockwise pattern adds (0, -1, 0).",
1786+
z: "The left-hand counter-clockwise pattern adds (0, 0, 1); the right-hand clockwise pattern adds (0, 0, -1).",
1787+
"0": "Adds (0, 0, 0) to the stack.",
17881788
},
17891789

17901790
"double/": {

Common/src/main/resources/assets/hexcasting/lang/ru_ru.flatten.json5

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1558,7 +1558,7 @@
15581558
numvec: "Многие математические операции выполняются как над числами, так и над векторами. Такие аргументы записываются как \"num|vec\".",
15591559

15601560
"add.1": "Сложение.",
1561-
"add.2": "Как следует:$(li)С двумя числами в верхней части стека объединяет их в их сумму.$(li)С числом и вектором удаляет число из стека и добавляет его к каждому элементу вектора.$(li)С двумя векторами объединяет их, складывая соответствующие компоненты в новый вектор (т.е. [1, 2, 3] + [0, 4, -1] = [1, 6, 2]).",
1561+
"add.2": "Как следует:$(li)С двумя числами в верхней части стека объединяет их в их сумму.$(li)С числом и вектором удаляет число из стека и добавляет его к каждому элементу вектора.$(li)С двумя векторами объединяет их, складывая соответствующие компоненты в новый вектор (т.е. (1, 2, 3) + (0, 4, -1) = (1, 6, 2)).",
15621562

15631563
"sub.1": "Вычитание.",
15641564
"sub.2": "Как следует:$(li)С двумя числами в верхней части стека вычисляет их разность.$(li)С числом и вектором удаляет число из стека и вычитает его из каждого элемента вектора.$(li)С двумя векторами вычисляет их, вычитая каждую компоненту.$(br2)Во всех случаях верхняя часть стека или ее компоненты вычитаются $(italic)из/$ второй сверху.",
@@ -1617,10 +1617,10 @@
16171617
"false": "Добавляет $(thing)Ложь/$ в верхнюю часть стека.",
16181618

16191619
"vec/": {
1620-
x: "Левый противочасовой шаблон добавляет [1, 0, 0] в стек; правый по часовой стрелке шаблон добавляет [-1, 0, 0].",
1621-
y: "Левый противочасовой шаблон добавляет [0, 1, 0] в стек; правый по часовой стрелке шаблон добавляет [0, -1, 0].",
1622-
z: "Левый противочасовой шаблон добавляет [0, 0, 1]; правый по часовой стрелке шаблон добавляет [0, 0, -1].",
1623-
"0": "Добавляет [0, 0, 0] в стек.",
1620+
x: "Левый противочасовой шаблон добавляет (1, 0, 0) в стек; правый по часовой стрелке шаблон добавляет (-1, 0, 0).",
1621+
y: "Левый противочасовой шаблон добавляет (0, 1, 0) в стек; правый по часовой стрелке шаблон добавляет (0, -1, 0).",
1622+
z: "Левый противочасовой шаблон добавляет (0, 0, 1); правый по часовой стрелке шаблон добавляет (0, 0, -1).",
1623+
"0": "Добавляет (0, 0, 0) в стек.",
16241624
},
16251625

16261626
"double/": {

Common/src/main/resources/assets/hexcasting/lang/zh_cn.flatten.json5

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1655,7 +1655,7 @@
16551655
numvec: "许多数学操作对数和向量都有效。这类参数记为“num vec”。",
16561656

16571657
"add.1": "执行加法。",
1658-
"add.2": "操作如下:$(li)若栈顶为两个数,返回其和。$(li)若为一个数和一个向量,移除该数并将向量的每个分量与其相加。$(li)若为两个向量,将对应分量相加(也即 [1, 2, 3] + [0, 4, -1] = [1, 6, 2])。",
1658+
"add.2": "操作如下:$(li)若栈顶为两个数,返回其和。$(li)若为一个数和一个向量,移除该数并将向量的每个分量与其相加。$(li)若为两个向量,将对应分量相加(也即 (1, 2, 3) + (0, 4, -1) = (1, 6, 2))。",
16591659

16601660
"sub.1": "执行减法。",
16611661
"sub.2": "操作如下:$(li)若栈顶为两个数,返回其差。$(li)若为一个数和一个向量,移除该数并将向量的每个分量与其相减。$(li)若为两个向量,将对应分量相减。$(br2)栈顶元素或其分量为减数,栈顶往下第二元素或其分量为被减数。",
@@ -1714,10 +1714,10 @@
17141714
"false": "返回 $(thing)False/$。",
17151715

17161716
"vec/": {
1717-
x: "左图(逆时针绘制)返回 [1, 0, 0];右图(顺时针绘制)返回 [-1, 0, 0]。",
1718-
y: "左图(逆时针绘制)返回 [0, 1, 0];右图(顺时针绘制)返回 [0, -1, 0]。",
1719-
z: "左图(逆时针绘制)返回 [0, 0, 1];右图(顺时针绘制)返回 [0, 0, -1]。",
1720-
"0": "返回 [0, 0, 0]。",
1717+
x: "左图(逆时针绘制)返回 (1, 0, 0);右图(顺时针绘制)返回 (-1, 0, 0)。",
1718+
y: "左图(逆时针绘制)返回 (0, 1, 0);右图(顺时针绘制)返回 (0, -1, 0)。",
1719+
z: "左图(逆时针绘制)返回 (0, 0, 1);右图(顺时针绘制)返回 (0, 0, -1)。",
1720+
"0": "返回 (0, 0, 0)。",
17211721
},
17221722

17231723
"double/": {

0 commit comments

Comments
 (0)