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 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

Member Data Documentation

◆ x1

float StdMeshBox::x1

◆ x2

float StdMeshBox::x2

◆ y1

float StdMeshBox::y1

◆ y2

float StdMeshBox::y2

◆ z1

float StdMeshBox::z1

Definition at line 146 of file StdMesh.h.

Referenced by StdMeshLoader::StdMeshXML::LoadGeometry(), and CStdGL::PerformMesh().

◆ z2

float StdMeshBox::z2

Definition at line 147 of file StdMesh.h.

Referenced by StdMeshLoader::StdMeshXML::LoadGeometry(), and CStdGL::PerformMesh().


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