OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
StdMeshBox Struct Reference

#include <StdMesh.h>

Public Member Functions

StdMeshVector GetCenter () const
 

Public Attributes

float x1
 
float y1
 
float z1
 
float x2
 
float y2
 
float z2
 

Detailed Description

Definition at line 146 of file StdMesh.h.

Member Function Documentation

StdMeshVector StdMeshBox::GetCenter ( ) const
inline

Definition at line 151 of file StdMesh.h.

References x1, and z1.

Referenced by C4Object::DrawFaceImpl().

152  {
153  return StdMeshVector{ (x2 + x1) / 2.0f, (y2 + y1) / 2.0f, (z2 + z1) / 2.0f };
154  }
float y2
Definition: StdMesh.h:149
float x2
Definition: StdMesh.h:149
float z1
Definition: StdMesh.h:148
float z2
Definition: StdMesh.h:149
float y1
Definition: StdMesh.h:148
float x1
Definition: StdMesh.h:148

Here is the caller graph for this function:

Member Data Documentation

float StdMeshBox::z2

The documentation for this struct was generated from the following file: