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 144 of file StdMesh.h.

Member Function Documentation

StdMeshVector StdMeshBox::GetCenter ( ) const
inline

Definition at line 149 of file StdMesh.h.

References x1, and z1.

Referenced by C4Object::DrawFaceImpl().

150  {
151  return StdMeshVector{ (x2 + x1) / 2.0f, (y2 + y1) / 2.0f, (z2 + z1) / 2.0f };
152  }
float y2
Definition: StdMesh.h:147
float x2
Definition: StdMesh.h:147
float z1
Definition: StdMesh.h:146
float z2
Definition: StdMesh.h:147
float y1
Definition: StdMesh.h:146
float x1
Definition: StdMesh.h:146

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: