Home
last modified time | relevance | path

Searched refs:z (Results 1 – 25 of 33) sorted by relevance

12

/CafeSDK-2.12.13/system/src/lib/mtx/
DmtxVec.c63 ab->z = a->z + b->z; in C_VECAdd()
135 a_b->z = a->z - b->z; in C_VECSubtract()
206 dst->z = src->z * scale; in C_VECScale()
270 mag = (src->x * src->x) + (src->y * src->y) + (src->z * src->z); in C_VECNormalize()
278 unit->z = src->z * mag; in C_VECNormalize()
369 sqmag = (v->x * v->x) + (v->y * v->y) + (v->z * v->z); in C_VECSquareMag()
392 V1_ZZ[0] = v->z; in PSVECSquareMag()
393 V1_ZZ[1] = v->z; in PSVECSquareMag()
509 dot = (a->x * b->x) + (a->y * b->y) + (a->z * b->z); in C_VECDotProduct()
583 vTmp.x = ( a->y * b->z ) - ( a->z * b->y ); in C_VECCrossProduct()
[all …]
Dmtx44Vec.c57 vTmp.x = m[0][0]*src->x + m[0][1]*src->y + m[0][2]*src->z + m[0][3]; in C_MTX44MultVec()
58 vTmp.y = m[1][0]*src->x + m[1][1]*src->y + m[1][2]*src->z + m[1][3]; in C_MTX44MultVec()
59 vTmp.z = m[2][0]*src->x + m[2][1]*src->y + m[2][2]*src->z + m[2][3]; in C_MTX44MultVec()
60 w = m[3][0]*src->x + m[3][1]*src->y + m[3][2]*src->z + m[3][3]; in C_MTX44MultVec()
66 dst->z = vTmp.z * w; in C_MTX44MultVec()
222 vTmp.x = m[0][0]*srcBase->x + m[0][1]*srcBase->y + m[0][2]*srcBase->z + m[0][3]; in C_MTX44MultVecArray()
223 vTmp.y = m[1][0]*srcBase->x + m[1][1]*srcBase->y + m[1][2]*srcBase->z + m[1][3]; in C_MTX44MultVecArray()
224 vTmp.z = m[2][0]*srcBase->x + m[2][1]*srcBase->y + m[2][2]*srcBase->z + m[2][3]; in C_MTX44MultVecArray()
225 w = m[3][0]*srcBase->x + m[3][1]*srcBase->y + m[3][2]*srcBase->z + m[3][3]; in C_MTX44MultVecArray()
231 dstBase->z = vTmp.z * w; in C_MTX44MultVecArray()
[all …]
DmtxQuat.c56 r->z = p->z + q->z; in C_QUATAdd()
130 r->z = p->z - q->z; in C_QUATSubtract()
216 r->w = p->w*q->w - p->x*q->x - p->y*q->y - p->z*q->z; in C_QUATMultiply()
217 r->x = p->w*q->x + p->x*q->w + p->y*q->z - p->z*q->y; in C_QUATMultiply()
218 r->y = p->w*q->y + p->y*q->w + p->z*q->x - p->x*q->z; in C_QUATMultiply()
219 r->z = p->w*q->z + p->z*q->w + p->x*q->y - p->y*q->x; in C_QUATMultiply()
363 r->z = q->z * scale; in C_QUATScale()
425 return (q->x*p->x + q->y*p->y + q->z*p->z + q->w*p->w); in C_QUATDotProduct()
492 mag = (src->x * src->x) + (src->y * src->y) + (src->z * src->z) + (src->w * src->w); in C_QUATNormalize()
500 unit->z = src->z * mag; in C_QUATNormalize()
[all …]
Dmtx.c1412 f32 x, y, z; // x, y, z components of normalized axis in C_MTXRotAxisRad() local
1426 z = vN.z; in C_MTXRotAxisRad()
1430 zSq = z * z; in C_MTXRotAxisRad()
1433 m[0][1] = ( t * x * y ) - ( s * z ); in C_MTXRotAxisRad()
1434 m[0][2] = ( t * x * z ) + ( s * y ); in C_MTXRotAxisRad()
1437 m[1][0] = ( t * x * y ) + ( s * z ); in C_MTXRotAxisRad()
1439 m[1][2] = ( t * y * z ) - ( s * x ); in C_MTXRotAxisRad()
1442 m[2][0] = ( t * x * z ) - ( s * y ); in C_MTXRotAxisRad()
1443 m[2][1] = ( t * y * z ) + ( s * x ); in C_MTXRotAxisRad()
1471 tmp1[0] = axis->z; in _PSMTXRotAxisRadInternal()
[all …]
Dmtx44.c1563 f32 x, y, z; // x, y, z components of normalized axis in C_MTX44RotAxisRad() local
1577 z = vN.z; in C_MTX44RotAxisRad()
1581 zSq = z * z; in C_MTX44RotAxisRad()
1584 m[0][1] = ( t * x * y ) - ( s * z ); in C_MTX44RotAxisRad()
1585 m[0][2] = ( t * x * z ) + ( s * y ); in C_MTX44RotAxisRad()
1588 m[1][0] = ( t * x * y ) + ( s * z ); in C_MTX44RotAxisRad()
1590 m[1][2] = ( t * y * z ) - ( s * x ); in C_MTX44RotAxisRad()
1593 m[2][0] = ( t * x * z ) - ( s * y ); in C_MTX44RotAxisRad()
1594 m[2][1] = ( t * y * z ) + ( s * x ); in C_MTX44RotAxisRad()
1631 tmp1[0] = axis->z; in __PSMTX44RotAxisRadInternal()
[all …]
/CafeSDK-2.12.13/system/include/cafe/demo/
DdemoGfxTypes.h31 struct{ f32 x, y, z, w;} v; member
43 struct{ f32 x, y, z;} v; member
79 struct{ u32 x, y, z, w;} v; member
91 struct{ u32 x, y, z;} v; member
127 struct{ s32 x, y, z, w;} v; member
139 struct{ s32 x, y, z;} v; member
175 struct{ u16 x, y, z, w;} v; member
187 struct{ u16 x, y, z;} v; member
223 struct{ s16 x, y, z, w;} v; member
235 struct{ s16 x, y, z;} v; member
[all …]
Ddemowin.h168 …rue), position(_position), size(_size), x(position.x), y(position.y), z(position.z), width(size.x)… in window()
171 …sition(copy.position), size(copy.size), x(position.x), y(position.y), z(position.z), width(size.x)… in MenuItem()
182 …t(text, CVec3(window->GetX() + position.x, window->GetY() + position.y, position.z), size, color);} in DrawText()
184 …r(text, CVec3(window->GetX() + position.x, window->GetY() + position.y, position.z), size, color);} in DrawTextCenter()
186 …t(text, CVec3(window->GetX() + position.x, window->GetY() + position.y, position.z), size, color);} in DrawTextRight()
188 …t(text, CVec3(window->GetX() + position.x, window->GetY() + position.y, position.z), size, color);} in DrawMultiLineText()
190 …ox(CVec3(window->GetX() + position.x, window->GetY() + position.y, position.z), size, color, color…
192 …rawLine(CVec3(window->GetX() + position.x, window->GetY() + position.y, position.z), size, color);} in DrawLine()
194 …astLine(CVec3(window->GetX() + position.x, window->GetY() + position.y, position.z), size, color);} in DrawFastLine()
196 …rawQuad(CVec3(window->GetX() + position.x, window->GetY() + position.y, position.z), size, color);} in DrawQuad()
[all …]
/CafeSDK-2.12.13/system/src/lib/demo/headers/cafe/demo/
DdemoGfxTypes.h31 struct{ f32 x, y, z, w;} v; member
43 struct{ f32 x, y, z;} v; member
79 struct{ u32 x, y, z, w;} v; member
91 struct{ u32 x, y, z;} v; member
127 struct{ s32 x, y, z, w;} v; member
139 struct{ s32 x, y, z;} v; member
175 struct{ u16 x, y, z, w;} v; member
187 struct{ u16 x, y, z;} v; member
223 struct{ s16 x, y, z, w;} v; member
235 struct{ s16 x, y, z;} v; member
[all …]
Ddemowin.h168 …rue), position(_position), size(_size), x(position.x), y(position.y), z(position.z), width(size.x)… in window()
171 …sition(copy.position), size(copy.size), x(position.x), y(position.y), z(position.z), width(size.x)… in MenuItem()
182 …t(text, CVec3(window->GetX() + position.x, window->GetY() + position.y, position.z), size, color);} in DrawText()
184 …r(text, CVec3(window->GetX() + position.x, window->GetY() + position.y, position.z), size, color);} in DrawTextCenter()
186 …t(text, CVec3(window->GetX() + position.x, window->GetY() + position.y, position.z), size, color);} in DrawTextRight()
188 …t(text, CVec3(window->GetX() + position.x, window->GetY() + position.y, position.z), size, color);} in DrawMultiLineText()
190 …ox(CVec3(window->GetX() + position.x, window->GetY() + position.y, position.z), size, color, color…
192 …rawLine(CVec3(window->GetX() + position.x, window->GetY() + position.y, position.z), size, color);} in DrawLine()
194 …astLine(CVec3(window->GetX() + position.x, window->GetY() + position.y, position.z), size, color);} in DrawFastLine()
196 …rawQuad(CVec3(window->GetX() + position.x, window->GetY() + position.y, position.z), size, color);} in DrawQuad()
[all …]
/CafeSDK-2.12.13/system/src/lib/demo/demowin/
Ddemowin_combo_box.cpp246 DrawBox(CVec3(this->x, this->y, this->z + 0.003), size, CVec4(0.13, 0.13, 0.13)); in Draw()
247 …DrawBox(CVec3(this->x + this->width / 2 - arrowWidth / 2, this->y, this->z + 0.0035), CVec2(arrowW… in Draw()
251 DrawBox(CVec3(this->x, this->y, this->z + 0.003), size, CVec4(0.03, 0.03, 0.03)); in Draw()
252 …DrawBox(CVec3(this->x + this->width / 2 - arrowWidth / 2, this->y, this->z + 0.0035), CVec2(arrowW… in Draw()
256 …DrawText(this->data[*this->target]->GetName(), CVec3(this->x - arrowWidth / 2, this->y, this->z + … in Draw()
259 …OWNARROW), CVec3(this->x + this->width / 2 - arrowWidth / 2, this->y, this->z + 0.005), CVec2(arro… in Draw()
286 …DrawBox(CVec3(this->x, this->y - (this->height / 2 + this->height * count / 2) * flipMul, this->z in Draw()
301 …dthOffset, startY - (this->over - position) * this->height * flipMul, this->z + 0.0205), CVec2(thi… in Draw()
309 … + position]->GetName(), CVec3(this->x - this->bar.width / 2, startY, this->z + 0.021), CVec2(this… in Draw()
Ddemowin_double_combo_box.cpp423 DrawBox(CVec3(this->x, this->y, this->z + 0.003), size, CVec4(0.13, 0.13, 0.13)); in Draw()
424 …DrawBox(CVec3(this->x + (this->width - arrowWidth) / 2, this->y, this->z + 0.0035), CVec2(arrowWid… in Draw()
428 DrawBox(CVec3(this->x, this->y, this->z + 0.003), size, CVec4(0.03, 0.03, 0.03)); in Draw()
429 …DrawBox(CVec3(this->x + (this->width - arrowWidth) / 2, this->y, this->z + 0.0035), CVec2(arrowWid… in Draw()
436 …DrawText(buffer, CVec3(this->x - arrowWidth / 2, this->y, this->z + 0.01), CVec2(this->width - arr… in Draw()
439 …ODOWNARROW), CVec3(this->x + (this->width - arrowWidth) / 2, this->y, this->z + 0.005), CVec2(arro… in Draw()
466 …DrawBox(CVec3(this->x, this->y - (this->height / 2 + this->height * count / 2) * flipMul, this->z in Draw()
474 …DrawQuad(CVec3(this->x, startY - (this->over1 - position) * this->height * flipMul, this->z + 0.51… in Draw()
478 …dthOffset, startY - (this->pos1 - position) * this->height * flipMul, this->z + 0.52), CVec2(this-… in Draw()
495 …+ position]->GetName(), CVec3(this->x - this->bar1.width / 2, startY, this->z + 0.53), CVec2(this-… in Draw()
[all …]
Ddemowin_slider_bar.cpp23 …on(item.window, CVec3(item.x - (item.width - item.height) / 2, item.y, item.z + 0.01), CVec2(item.… in Add()
24 …on(item.window, CVec3(item.x + (item.width - item.height) / 2, item.y, item.z + 0.01), CVec2(item.… in Add()
160 …DrawBox(CVec3(this->x + x, this->y, this->z + 0.002), CVec2(this->height, this->height), CVec4(col… in Draw()
165 …DrawTextCenter(buffer, CVec3(this->x + x, this->y, this->z + 0.003), CVec2(this->height, this->hei… in Draw()
Ddemowin_slider_bar_float.cpp23 …on(item.window, CVec3(item.x - (item.width - item.height) / 2, item.y, item.z + 0.01), CVec2(item.… in Add()
24 …on(item.window, CVec3(item.x + (item.width - item.height) / 2, item.y, item.z + 0.01), CVec2(item.… in Add()
160 …DrawBox(CVec3(this->x + x, this->y, this->z + 0.002), CVec2(this->height, this->height), CVec4(col… in Draw()
203 …DrawTextCenter(buffer, CVec3(this->x + x, this->y, this->z + 0.003), CVec2(this->height, this->hei… in Draw()
Ddemowin_scroll_bar.cpp121 DrawQuad(CVec3(x, y + offY, z + 0.0001), CVec2(width, subHeight), color); in Draw()
123 DrawLine(CVec3(x - width / 2, y - height / 2, z + 0.0002), CVec2(0, height), CVec4(0, 0, 0)); in Draw()
Ddemowin_button.cpp61 …DrawTextCenter(text.text, CVec3(x, y, z + 0.0001), CVec2(width, height * 0.8), CVec4(1.0 - color.r… in Draw()
Ddemowin_held_button.cpp68 …DrawTextCenter(text.text, CVec3(x, y, z + 0.0001), CVec2(width, height * 0.8), CVec4(1.0 - color.r… in Draw()
/CafeSDK-2.12.13/system/src/lib/mtx/headers/cafe/mtx/
DmtxGeoTypes.h32 f32 z; ///< Z Component member
48 s16 z; ///< Z component member
61 f32 x, y, z, w; member
/CafeSDK-2.12.13/system/include/cafe/mtx/
DmtxGeoTypes.h32 f32 z; ///< Z Component member
48 s16 z; ///< Z component member
61 f32 x, y, z, w; member
/CafeSDK-2.12.13/system/include/cafe/demo/demowin/
Ddemowin_double_combo_box.h19 ….z + 0.55), CVec2(SCROLLBAR_WIDTH, size.y * COMBOBOX_COUNT), 0, COMBOBOX_COUNT), bar2(window, CVec… in MenuItem()
Ddemowin_assets.h48 : x(_x), y(_y), z(_z) {} in CVec3()
56 float z; member
71 : x(_x), y(_y), z(_z), w(_w) {} in x()
79 float z; member
Ddemowin_combo_box.h25 …bar(window, CVec3(size.x / 2 - SCROLLBAR_WIDTH / 2, size.y * -5.5, position.z + 0.55), CVec2(SCROL… in MenuItem()
/CafeSDK-2.12.13/system/src/lib/demo/headers/cafe/demo/demowin/
Ddemowin_double_combo_box.h19 ….z + 0.55), CVec2(SCROLLBAR_WIDTH, size.y * COMBOBOX_COUNT), 0, COMBOBOX_COUNT), bar2(window, CVec… in MenuItem()
Ddemowin_assets.h48 : x(_x), y(_y), z(_z) {} in CVec3()
56 float z; member
71 : x(_x), y(_y), z(_z), w(_w) {} in x()
79 float z; member
Ddemowin_combo_box.h25 …bar(window, CVec3(size.x / 2 - SCROLLBAR_WIDTH / 2, size.y * -5.5, position.z + 0.55), CVec2(SCROL… in MenuItem()
/CafeSDK-2.12.13/system/include/cafe/curl/
Dmulti.h270 #define curl_multi_socket(x,y,z) curl_multi_socket_action(x,y,0,z) argument

12