wavelength 1.0.0
Loading...
Searching...
No Matches
vector2.h File Reference
#include "os/prnstream.h"
Include dependency graph for vector2.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Vector2
 Two-component vector, used for texture coordinates. More...

Namespaces

namespace  Rnd

Functions

PrnStream & operator<< (PrnStream &stream, const Vector2 &vector)
 Write a vector as (x: y:).
void Rnd::Add (const Vector2 &a, const Vector2 &b, Vector2 &out)
 Add two two-component vectors.
void Rnd::Normalize (const Vector2 &v, Vector2 &out)
 Scale a two-component vector to unit length.
float Rnd::Length (const Vector2 &v)
 Report the length of a two-component vector.

Function Documentation

◆ operator<<()

PrnStream & operator<< ( PrnStream & stream,
const Vector2 & vector )

Write a vector as (x: y:).

Parameters
streamThe stream to write to.
vectorThe vector.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x00292f98
Ghidra address:
PAL: 0x0029c960