载入中...
搜索中...
未找到
eve::card::CardPlaneMapper类 参考

Maps a logical card canvas to a 3D parallelogram without depending on graphics. 更多...

#include <Card.h>

Public 成员函数

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.
 
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.
 

详细描述

Maps a logical card canvas to a 3D parallelogram without depending on graphics.

在文件 Card.h 第 55 行定义.

成员函数说明

◆ getLogicalX()

float eve::card::CardPlaneMapper::getLogicalX ( ) const
inline

Return the most recently mapped logical X coordinate.

在文件 Card.h 第 67 行定义.

◆ getLogicalY()

float eve::card::CardPlaneMapper::getLogicalY ( ) const
inline

Return the most recently mapped logical Y coordinate.

在文件 Card.h 第 69 行定义.

◆ getWorldX()

float eve::card::CardPlaneMapper::getWorldX ( ) const
inline

Return the most recently mapped world X coordinate.

在文件 Card.h 第 71 行定义.

◆ getWorldY()

float eve::card::CardPlaneMapper::getWorldY ( ) const
inline

Return the most recently mapped world Y coordinate.

在文件 Card.h 第 73 行定义.

◆ getWorldZ()

float eve::card::CardPlaneMapper::getWorldZ ( ) const
inline

Return the most recently mapped world Z coordinate.

在文件 Card.h 第 75 行定义.

◆ mapLayout()

bool eve::card::CardPlaneMapper::mapLayout ( float  x,
float  y 
)

Map a logical point to the configured world plane.

在文件 Card.cpp 第 61 行定义.

引用了 u, v, x , 以及 y.

◆ mapRay()

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 第 37 行定义.

引用了 direction, dx, dy, dz, normal, ox, oy, relative, t, u, uv , 以及 v.

◆ setLogicalRect()

void eve::card::CardPlaneMapper::setLogicalRect ( float  x,
float  y,
float  width,
float  height 
)

Configure the logical rectangle represented by the world plane.

在文件 Card.cpp 第 23 行定义.

引用了 height, width, x , 以及 y.

◆ setPlane()

void eve::card::CardPlaneMapper::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.

在文件 Card.cpp 第 30 行定义.

引用了 ox, oy, vx, vy , 以及 vz.


该类的文档由以下文件生成: