Maps a logical card canvas to a 3D parallelogram without depending on graphics.
更多...
|
| void | setLogicalRect (float x, float y, float width, float height) |
| | Configure the logical rectangle represented by the world plane.
|
| |
| void | setPlane (float ox, float oy, float oz, float ux, float uy, float uz, float vx, float vy, float vz) |
| | Configure world origin plus full-width U and full-height V vectors.
|
| |
| bool | mapRay (float ox, float oy, float oz, float dx, float dy, float dz) |
| | Intersect a world ray and store its logical and world hit coordinates.
|
| |
| bool | mapLayout (float x, float y) |
| | Map a logical point to the configured world plane.
|
| |
| eve::Result< void > | mapCardPose (float x, float y, float layoutAngleDeg, float flipProgress, float liftPeak, int flipAxis) |
| | Map a card's logical center into a lifted/flipped world pose on the plane.
|
| |
| float | getLogicalX () const |
| | Return the most recently mapped logical X coordinate.
|
| |
| float | getLogicalY () const |
| | Return the most recently mapped logical Y coordinate.
|
| |
| float | getWorldX () const |
| | Return the most recently mapped world X coordinate.
|
| |
| float | getWorldY () const |
| | Return the most recently mapped world Y coordinate.
|
| |
| float | getWorldZ () const |
| | Return the most recently mapped world Z coordinate.
|
| |
| float | getBasisUX () const |
| | Local card right axis after layout rotation and flip (world space).
|
| |
| float | getBasisUY () const |
| | Basis U Y.
|
| |
| float | getBasisUZ () const |
| | Basis U Z.
|
| |
| float | getBasisVX () const |
| | Local card up axis after layout rotation and flip (world space).
|
| |
| float | getBasisVY () const |
| | Basis V Y.
|
| |
| float | getBasisVZ () const |
| | Basis V Z.
|
| |
| float | getBasisNX () const |
| | Card facing normal after flip (world space).
|
| |
| float | getBasisNY () const |
| | Basis N Y.
|
| |
| float | getBasisNZ () const |
| | Basis N Z.
|
| |
| bool | isShowingFront () const |
| | Whether the most recent mapCardPose should bind the front face.
|
| |
Maps a logical card canvas to a 3D parallelogram without depending on graphics.
在文件 Card.h 第 72 行定义.
| eve::Result< void > eve::card::CardPlaneMapper::mapCardPose |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
layoutAngleDeg, |
|
|
float |
flipProgress, |
|
|
float |
liftPeak, |
|
|
int |
flipAxis |
|
) |
| |
Map a card's logical center into a lifted/flipped world pose on the plane.
- 参数
-
| x | Logical center X. |
| y | Logical center Y. |
| layoutAngleDeg | In-plane rotation (Hand fan angle), degrees. |
| flipProgress | Animated face-down amount in [0, 1]. |
| liftPeak | Peak rise along the plane normal at the edge-on midpoint. |
| flipAxis | 0 = rotate about local up (width foreshortens), 1 = about local right. |
- 返回
- Success with cached world position and orthonormal basis U/V/N, or InvalidArgument when the logical rect or plane axes degenerate.
在文件 Card.cpp 第 74 行定义.
引用了 eve::Diagnostic::error(), eve::card::evaluateCardFlip(), eve::Result< T >::failure(), eve::InvalidArgument, mapLayout(), n, pose, eve::Result< T >::success(), u, v, x , 以及 y.
| bool eve::card::CardPlaneMapper::mapRay |
( |
float |
ox, |
|
|
float |
oy, |
|
|
float |
oz, |
|
|
float |
dx, |
|
|
float |
dy, |
|
|
float |
dz |
|
) |
| |
Intersect a world ray and store its logical and world hit coordinates.
在文件 Card.cpp 第 40 行定义.
引用了 direction, dx, dy, dz, normal, ox, oy, relative, t, u, uv , 以及 v.