本文整理汇总了C++中Matrix3x3::RotZ方法的典型用法代码示例。如果您正苦于以下问题:C++ Matrix3x3::RotZ方法的具体用法?C++ Matrix3x3::RotZ怎么用?C++ Matrix3x3::RotZ使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Matrix3x3
的用法示例。
在下文中一共展示了Matrix3x3::RotZ方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: BoxDesc
virtual bool Setup(Pint& pint, const PintCaps& caps)
{
if(!CylinderTest::Setup(pint, caps))
return false;
// Create ramp
{
Matrix3x3 M;
M.RotZ(-0.2f);
const Quat R = M;
PINT_BOX_CREATE BoxDesc(10.0f, 1.0f, 10.0f);
BoxDesc.mRenderer = CreateBoxRenderer(BoxDesc.mExtents);
PintObjectHandle Handle = CreateStaticObject(pint, &BoxDesc, Point(0.0f, 0.0f, 0.0f), &R);
ASSERT(Handle);
}
const bool UseConvexes = mCheckBox_UseConvexesForAll ? mCheckBox_UseConvexesForAll->IsChecked() : false;
if(!caps.mSupportCylinders || UseConvexes)
{
// Create cylinder as a convex object
PINT_CONVEX_CREATE ConvexCreate(mCylinder.mNbVerts, mCylinder.mVerts);
ConvexCreate.mRenderer = GetRegisteredRenderers()[0];
PintObjectHandle Handle = CreateDynamicObject(pint, &ConvexCreate, Point(0.0f, mCylinder.mRadius+2.0f, 0.0f));
ASSERT(Handle);
}
else
{
PINT_CYLINDER_CREATE CylinderCreate(mCylinder.mRadius, mCylinder.mHalfHeight);
CylinderCreate.mRenderer = GetRegisteredRenderers()[1];
const Quat Q = ShortestRotation(Point(0.0f, 1.0f, 0.0f), Point(0.0f, 0.0f, 1.0f));
PintObjectHandle Handle = CreateDynamicObject(pint, &CylinderCreate, Point(0.0f, mCylinder.mRadius+2.0f, 0.0f), &Q);
ASSERT(Handle);
}
return true;
}