Added [Box|Rect]::Get[Maximum|Minimum]()
Former-commit-id: 5226f2dfd2beaec2bc9075543f555cc48a457e3a
This commit is contained in:
@@ -63,8 +63,8 @@ void NzDebugDrawer::Draw(const NzBoxf& box)
|
||||
NzVertexStruct_XYZ* vertex = reinterpret_cast<NzVertexStruct_XYZ*>(mapper.GetPointer());
|
||||
|
||||
NzVector3f max, min;
|
||||
max = box.GetPosition() + box.GetLengths();
|
||||
min = box.GetPosition();
|
||||
max = box.GetMaximum();
|
||||
min = box.GetMinimum();
|
||||
|
||||
vertex->position.Set(min.x, min.y, min.z);
|
||||
vertex++;
|
||||
|
||||
Reference in New Issue
Block a user