本文整理汇总了C++中Matrix::GetLeft方法的典型用法代码示例。如果您正苦于以下问题:C++ Matrix::GetLeft方法的具体用法?C++ Matrix::GetLeft怎么用?C++ Matrix::GetLeft使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Matrix
的用法示例。
在下文中一共展示了Matrix::GetLeft方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: AddAxisGizmo
void DebugRenderer::AddAxisGizmo(const Matrix& transform, F32 axisLength, Lifespan lifespan) {
Vector3f i = Vector3f::Normalize(transform.GetLeft());
Vector3f j = Vector3f::Normalize(transform.GetUp());
Vector3f k = Vector3f::Normalize(transform.GetForward());
Vector3f position = transform.GetTranslation();
AddLine(position, i, axisLength, Color::Red, lifespan);
AddLine(position, j, axisLength, Color::Green, lifespan);
AddLine(position, k, axisLength, Color::Blue, lifespan);
}
示例2: DrawAxisGizmo
void BufferedPrimitiveRenderer::DrawAxisGizmo(const Matrix& transform,
F32 axisLength,
DebugLifespan::Enum lifespan /*= DebugLifespan::Temporary*/,
bool depthEnabled /*= false*/,
bool antiAliased /*= false*/) {
Vector3f i = Vector3f::Normalize(transform.GetLeft());
Vector3f j = Vector3f::Normalize(transform.GetUp());
Vector3f k = Vector3f::Normalize(transform.GetForward());
Vector3f position = transform.GetTranslation();
DrawLine(position, i, axisLength, Color::Red, lifespan, depthEnabled, antiAliased);
DrawLine(position, j, axisLength, Color::Green, lifespan, depthEnabled, antiAliased);
DrawLine(position, k, axisLength, Color::Blue, lifespan, depthEnabled, antiAliased);
}