Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
Coord2D Struct Reference

#include <BaseType.h>

Public Member Functions

Real length (void) const
 
void normalize (void)
 
Real toAngle (void) const
 turn 2D vector into angle (where angle 0 is down the +x axis)
 

Public Attributes

Real x
 
Real y
 

Detailed Description

Definition at line 271 of file BaseType.h.

Member Function Documentation

◆ length()

Real Coord2D::length ( void ) const
inline

Definition at line 275 of file BaseType.h.

◆ normalize()

void Coord2D::normalize ( void )
inline

Definition at line 277 of file BaseType.h.

◆ toAngle()

Real Coord2D::toAngle ( void ) const
inline

turn 2D vector into angle (where angle 0 is down the +x axis)

Definition at line 291 of file BaseType.h.

Member Data Documentation

◆ x

Real Coord2D::x

Definition at line 273 of file BaseType.h.

◆ y

Real Coord2D::y

Definition at line 273 of file BaseType.h.


The documentation for this struct was generated from the following file: