LeviLamina
Loading...
Searching...
No Matches
Vec3.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class Vec2;
8// clang-format on
9
10class Vec3 : public ll::math::floatN3<Vec3> {
11public:
12 using floatN3::floatN3;
13
14public:
15 // member functions
16 // NOLINTBEGIN
17 MCAPI bool isNan() const;
18
19 MCAPI bool isNear(::Vec3 const& rhs, float e) const;
20
21 MCAPI float lengthSquared() const;
22
23 MCAPI ::Vec3 normalized() const;
24
25 MCAPI_C ::Vec3 round() const;
26 // NOLINTEND
27
28public:
29 // static functions
30 // NOLINTBEGIN
31 MCAPI_C static ::Vec3 clamp(::Vec3 const& v, ::Vec3 const& clipMin, ::Vec3 const& clipMax);
32
33 MCAPI static ::Vec3 directionFromRotation(::Vec2 const& rot);
34 // NOLINTEND
35
36public:
37 // static variables
38 // NOLINTBEGIN
39 MCAPI static ::Vec3 const& HALF();
40
41 MCAPI static ::Vec3 const& MAX();
42
43 MCAPI static ::Vec3 const& MIN();
44
45 MCAPI_C static ::Vec3 const& NEG_UNIT_X();
46
47 MCAPI static ::Vec3 const& NEG_UNIT_Y();
48
49 MCAPI_C static ::Vec3 const& NEG_UNIT_Z();
50
51 MCAPI static ::Vec3 const& ONE();
52
53 MCAPI static ::Vec3 const& UNIT_X();
54
55 MCAPI static ::Vec3 const& UNIT_Y();
56
57 MCAPI static ::Vec3 const& UNIT_Z();
58
59 MCAPI static ::Vec3 const& ZERO();
60 // NOLINTEND
61
62public:
63 // constructor thunks
64 // NOLINTBEGIN
65 MCFOLD_C void* $ctor(::glm::vec3 const& glm);
66
67 MCAPI void* $ctor(float s);
68
69 MCFOLD void* $ctor(float x_, float y_, float z_);
70 // NOLINTEND
71};
Definition Vec2.h:5
Definition Vec3.h:10