resonance 1.0.1
Loading...
Searching...
No Matches
vector2.h
Go to the documentation of this file.
1#pragma once
2
10struct Vector2 {
11 float x;
12 float y;
13};
14
15namespace Rnd {
16
29void Add(const Vector2 &a, const Vector2 &b, Vector2 &out);
30
43void Multiply(const Vector2 &v, float flScale, Vector2 &out);
44
55void Negate(const Vector2 &v, Vector2 &out);
56
67void Normalize(const Vector2 &v, Vector2 &out);
68
77float Length(const Vector2 &v);
78
79} // namespace Rnd
80
94void SubVec2(const float *pA, const float *pB, float *pOut);
The rendering engine.
Definition animhelper.h:3
void Negate(const Vector2 &v, Vector2 &out)
Negate a two-component vector.
void Multiply(const Vector2 &v, float flScale, Vector2 &out)
Scale a two-component vector.
void Normalize(const Vector2 &v, Vector2 &out)
Scale a two-component vector to unit length.
float Length(const Vector2 &v)
Report the length of a two-component vector.
void Add(const Vector2 &a, const Vector2 &b, Vector2 &out)
Add two two-component vectors.
Two-component vector, used for texture coordinates.
Definition vector2.h:10
float x
Definition vector2.h:11
float y
Definition vector2.h:12
void SubVec2(const float *pA, const float *pB, float *pOut)
Subtract one two-component vector from another.