MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / Float2

Class Float2

SampleFramework12/v1.00/SF12_Math.h:25–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23// Extension classes for XMFLOAT* classes
24
25struct Float2
26{
27 float x, y;
28
29 Float2();
30 Float2(float x);
31 Float2(float x, float y);
32 explicit Float2(const DirectX::XMFLOAT2& xy);
33 explicit Float2(DirectX::FXMVECTOR xy);
34
35 Float2& operator+=(const Float2& other);
36 Float2 operator+(const Float2& other) const;
37
38 Float2& operator-=(const Float2& other);
39 Float2 operator-(const Float2& other) const;
40
41 Float2& operator*=(const Float2& other);
42 Float2 operator*(const Float2& other) const;
43
44 Float2& operator*=(float s);
45 Float2 operator*(float s) const;
46
47 Float2& operator/=(const Float2& other);
48 Float2 operator/(const Float2& other) const;
49
50 Float2& operator/=(float s);
51 Float2 operator/(float s) const;
52
53 bool operator==(const Float2& other) const;
54 bool operator!=(const Float2& other) const;
55
56 Float2 operator-() const;
57
58 DirectX::XMVECTOR ToSIMD() const;
59
60 static Float2 Clamp(const Float2& val, const Float2& min, const Float2& max);
61 static float Length(const Float2& val);
62};
63
64struct Float3
65{

Callers 15

InitializeSceneMethod · 0.85
RenderDeferredMethod · 0.85
RenderHUDMethod · 0.85
To2DMethod · 0.85
RandomFloat2Method · 0.85
ToFloat2Function · 0.85
ToFloat2Method · 0.85
FracFunction · 0.85
CartesianToSphericalFunction · 0.85
CanvasTransformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected