mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
Refactor geom
library into geom
and shape
(#1263)
* Refactor `geom` library into `geom` and `util` * Rename to `shape`
This commit is contained in:

committed by
GitHub

parent
5b19d7953a
commit
1b99d75543
21
LEGO1/lego/sources/shape/legosphere.h
Normal file
21
LEGO1/lego/sources/shape/legosphere.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef __LEGOSPHERE_H
|
||||
#define __LEGOSPHERE_H
|
||||
|
||||
#include "legovertex.h"
|
||||
|
||||
// SIZE 0x10
|
||||
class LegoSphere {
|
||||
public:
|
||||
LegoSphere() { m_radius = 0.0F; }
|
||||
LegoVertex& GetCenter() { return m_center; }
|
||||
void SetCenter(LegoVertex& p_center) { m_center = p_center; }
|
||||
LegoFloat GetRadius() { return m_radius; }
|
||||
void SetRadius(LegoFloat p_radius) { m_radius = p_radius; }
|
||||
LegoResult Read(LegoStorage* p_storage);
|
||||
|
||||
protected:
|
||||
LegoVertex m_center; // 0x00
|
||||
LegoFloat m_radius; // 0x0c
|
||||
};
|
||||
|
||||
#endif // __LEGOSPHERE_H
|
Reference in New Issue
Block a user