📄 mgcbox2.h
字号:
// Magic Software, Inc.
// http://www.magic-software.com
// Copyright (c) 2000, All Rights Reserved
//
// Source code from Magic Software is supplied under the terms of a license
// agreement and may not be copied or disclosed except in accordance with the
// terms of that agreement. The various license agreements may be found at
// the Magic Software web site. This file is subject to the license
//
// FREE SOURCE CODE
// http://www.magic-software.com/License/free.pdf
#ifndef MGCBOX2_H
#define MGCBOX2_H
#include "MgcRTLib.h"
#include "MgcVector2.h"
class MgcBox2
{
public:
MgcBox2 ();
MgcVector2& Center ();
const MgcVector2& Center () const;
MgcVector2& Axis (int i);
const MgcVector2& Axis (int i) const;
MgcVector2* Axes ();
const MgcVector2* Axes () const;
MgcReal& Extent (int i);
const MgcReal& Extent (int i) const;
MgcReal* Extents ();
const MgcReal* Extents () const;
void ComputeVertices (MgcVector2 akVertex[4]) const;
protected:
MgcVector2 m_kCenter;
MgcVector2 m_akAxis[2];
MgcReal m_afExtent[2];
};
#include "MgcBox2.inl"
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -