OpenClonk
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

◆ GetCenter()

StdMeshVector StdMeshBox::GetCenter ( ) const
inline

Definition at line 149 of file StdMesh.h.

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

References x1, x2, y1, y2, z1, and z2.

Referenced by C4Object::DrawFaceImpl().

Here is the caller graph for this function:

Member Data Documentation

◆ x1

◆ x2

◆ y1

◆ y2

◆ z1

◆ z2


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