mirror of
https://github.com/zeldaret/botw
synced 2026-07-11 14:38:41 -04:00
ksys/phys: Start adding ClosestPointQuery and iterator stuff
This commit is contained in:
@@ -6,12 +6,25 @@ namespace ksys::phys {
|
||||
|
||||
class QueryContactPointInfo : public ContactPointInfo {
|
||||
public:
|
||||
class Iterator : public ContactPointInfo::Iterator {
|
||||
public:
|
||||
using ContactPointInfo::Iterator::Iterator;
|
||||
|
||||
void getPointPosition(sead::Vector3f* out, Point point) const override;
|
||||
sead::Vector3f getPointPosition(Point point) const override;
|
||||
};
|
||||
|
||||
static QueryContactPointInfo* make(sead::Heap* heap, int num_points,
|
||||
const sead::SafeString& name, int a, int b);
|
||||
static void free(QueryContactPointInfo* info);
|
||||
|
||||
using ContactPointInfo::ContactPointInfo;
|
||||
~QueryContactPointInfo() override;
|
||||
|
||||
auto begin() const { return Iterator(mPoints, mNumContactPoints); }
|
||||
auto end() const { return Iterator(mPoints, mNumContactPoints, Iterator::IsEnd::Yes); }
|
||||
|
||||
friend class ClosestPointQuery;
|
||||
};
|
||||
|
||||
} // namespace ksys::phys
|
||||
|
||||
Reference in New Issue
Block a user