GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
VectorTools.hh File Reference
#include <iostream>
#include <cmath>
#include <vector>
Include dependency graph for VectorTools.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  BOX
class  ComponentMultipliers
class  Point
class  SphericalPoint
class  VEC4
class  Vector
struct  AxisAngle
class  Matrix
class  Plane
class  Color
struct  UnitVectors
struct  Coords
class  AreaTools
struct  Line
class  Quarternion
class  LineProperties
struct  PoseLine
class  SphereProperties2
class  RectProperties
struct  Point2d
struct  Vector2d
class  TriangleProperties
class  CubePlanes
class  PlaneIntersection
class  FlexiblePlane
struct  FlexibleCube
class  GC2d
class  GC3d
class  Widget3d
class  Cube3d
class  PolyMatrix
class  Polynomial
class  Pid

Enumerations

enum  GcId { ERect , ELine , EBitmap }

Functions

float Min (float a, float b)
float Max (float a, float b)
Point UnitCube (Point p, Point pos, Vector u_x, Vector u_y, Vector u_z)
Point UnitToCube (Point p, Point pos, Vector u_x, Vector u_y, Vector u_z)
Point UnitToFlex (Point p, Point bTL, Point bTR, Point bBL, Point bBR, Point fTL, Point fTR, Point fBL, Point fBR)
bool PointIsInsideTriangle (Point2d p1, Point2d p2, Point2d p3, Point2d p)
bool IsWithInBoundingBox (Point2d p, Point2d top_left, Point2d bottom_right)
bool LineLineIntersection_Parallel (Point2d l1_p1, Point2d l1_p2, Point2d l2_p1, Point2d l2_p2)
Point2d LineLineIntersection (Point2d l1_p1, Point2d l1_p2, Point2d l2_p1, Point2d l2_p2)
Vector2d operator- (const Point2d &p1, const Point2d &p2)
Point2d operator+ (const Point2d &p, const Vector2d &p2)
Line PlanePlaneIntersection (const Plane &p1, const Plane &p2)
FlexibleCube box (Point p1, float sx, float sy, float sz)

Enumeration Type Documentation

◆ GcId

enum GcId
Enumerator
ERect 
ELine 
EBitmap 

Function Documentation

◆ box()

FlexibleCube box ( Point p1,
float sx,
float sy,
float sz )
Here is the caller graph for this function:

◆ IsWithInBoundingBox()

bool IsWithInBoundingBox ( Point2d p,
Point2d top_left,
Point2d bottom_right )

◆ LineLineIntersection()

Point2d LineLineIntersection ( Point2d l1_p1,
Point2d l1_p2,
Point2d l2_p1,
Point2d l2_p2 )

◆ LineLineIntersection_Parallel()

bool LineLineIntersection_Parallel ( Point2d l1_p1,
Point2d l1_p2,
Point2d l2_p1,
Point2d l2_p2 )

◆ Max()

float Max ( float a,
float b )
inline
Here is the caller graph for this function:

◆ Min()

float Min ( float a,
float b )
inline
Here is the caller graph for this function:

◆ operator+()

Point2d operator+ ( const Point2d & p,
const Vector2d & p2 )
inline

◆ operator-()

Vector2d operator- ( const Point2d & p1,
const Point2d & p2 )
inline

◆ PlanePlaneIntersection()

Line PlanePlaneIntersection ( const Plane & p1,
const Plane & p2 )
Here is the caller graph for this function:

◆ PointIsInsideTriangle()

bool PointIsInsideTriangle ( Point2d p1,
Point2d p2,
Point2d p3,
Point2d p )
inline

◆ UnitCube()

Point UnitCube ( Point p,
Point pos,
Vector u_x,
Vector u_y,
Vector u_z )

◆ UnitToCube()

Point UnitToCube ( Point p,
Point pos,
Vector u_x,
Vector u_y,
Vector u_z )

◆ UnitToFlex()

Point UnitToFlex ( Point p,
Point bTL,
Point bTR,
Point bBL,
Point bBR,
Point fTL,
Point fTR,
Point fBL,
Point fBR )