Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Geometry.h File Reference
#include "Types.h"

Go to the source code of this file.

Classes

struct  Rect
struct  Insets
struct  Matrix
struct  Vec2
struct  Vec3
struct  Point
struct  Quaternion
struct  Plane

Functions

double ClosestApproachTime (const Vec3 &loc1, const Vec3 &vel1, const Vec3 &loc2, const Vec3 &vel2)
double ClosestApproachTime (const Point &loc1, const Point &vel1, const Point &loc2, const Point &vel2)
double DotProduct (const Point &a, const Point &b)
void CrossProduct (const Point &a, const Point &b, Point &out)
void MConcat (double in1[3][3], double in2[3][3], double out[3][3])
int lines_intersect (double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4, double &x, double &y)

Variables

const double PI = 3.14159265358979323846
const double DEGREES = (PI/180)

Function Documentation

double ClosestApproachTime ( const Vec3 loc1,
const Vec3 vel1,
const Vec3 loc2,
const Vec3 vel2 
)

Definition at line 166 of file Geometry.cpp.

double ClosestApproachTime ( const Point loc1,
const Point vel1,
const Point loc2,
const Point vel2 
)

Definition at line 101 of file Geometry.cpp.

void CrossProduct ( const Point a,
const Point b,
Point out 
)

Definition at line 557 of file Geometry.cpp.

double DotProduct ( const Point a,
const Point b 
)

Definition at line 549 of file Geometry.cpp.

int lines_intersect ( double  x1,
double  y1,
double  x2,
double  y2,
double  x3,
double  y3,
double  x4,
double  y4,
double &  x,
double &  y 
)

Definition at line 630 of file Geometry.cpp.

void MConcat ( double  in1[3][3],
double  in2[3][3],
double  out[3][3] 
)

Definition at line 567 of file Geometry.cpp.


Variable Documentation

const double DEGREES = (PI/180)

Definition at line 31 of file Geometry.h.

const double PI = 3.14159265358979323846

Definition at line 30 of file Geometry.h.