GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
LineProperties Class Reference

#include <VectorTools.hh>

Public Member Functions

 LineProperties (Point p1, Point p2)
Plane PlaneFromLine (float x, float angle, float dist)
Point MiddlePoint (float x) const
Vector PerpendicularVector (float angle, float length)
float Dist (Point p)
bool TriangleIntersection (Point p1, Point p2, Point p3, float &r)
bool TriangleIntersection (Point v1, Point v2, Point v3, float &u, float &v, float &t)
bool QuadIntersection (Point p1, Point p2, Point p3, Point p4, float &r)
bool BoxIntersection (BOX &b, float &tmin, float &tmax)
float LineCoords (Point p) const
Matrix translate_to_p1 () const
Matrix translate_to_p2 () const
Matrix rotate_z_from_p1_in_2d () const
Matrix rotate_from_p1_in_3d () const
Matrix rotate_to_initial_pos () const
Matrix scale_length_in_2d () const

Constructor & Destructor Documentation

◆ LineProperties()

LineProperties::LineProperties ( Point p1,
Point p2 )
inline

Member Function Documentation

◆ BoxIntersection()

bool LineProperties::BoxIntersection ( BOX & b,
float & tmin,
float & tmax )
Here is the caller graph for this function:

◆ Dist()

float LineProperties::Dist ( Point p)
Here is the caller graph for this function:

◆ LineCoords()

float LineProperties::LineCoords ( Point p) const
Here is the caller graph for this function:

◆ MiddlePoint()

Point LineProperties::MiddlePoint ( float x) const
Here is the caller graph for this function:

◆ PerpendicularVector()

Vector LineProperties::PerpendicularVector ( float angle,
float length )
Here is the caller graph for this function:

◆ PlaneFromLine()

Plane LineProperties::PlaneFromLine ( float x,
float angle,
float dist )

◆ QuadIntersection()

bool LineProperties::QuadIntersection ( Point p1,
Point p2,
Point p3,
Point p4,
float & r )
Here is the caller graph for this function:

◆ rotate_from_p1_in_3d()

Matrix LineProperties::rotate_from_p1_in_3d ( ) const
inline
Here is the caller graph for this function:

◆ rotate_to_initial_pos()

Matrix LineProperties::rotate_to_initial_pos ( ) const
inline
Here is the caller graph for this function:

◆ rotate_z_from_p1_in_2d()

Matrix LineProperties::rotate_z_from_p1_in_2d ( ) const
inline
Here is the caller graph for this function:

◆ scale_length_in_2d()

Matrix LineProperties::scale_length_in_2d ( ) const
inline
Here is the caller graph for this function:

◆ translate_to_p1()

Matrix LineProperties::translate_to_p1 ( ) const
inline
Here is the caller graph for this function:

◆ translate_to_p2()

Matrix LineProperties::translate_to_p2 ( ) const
inline

◆ TriangleIntersection() [1/2]

bool LineProperties::TriangleIntersection ( Point p1,
Point p2,
Point p3,
float & r )
Here is the caller graph for this function:

◆ TriangleIntersection() [2/2]

bool LineProperties::TriangleIntersection ( Point v1,
Point v2,
Point v3,
float & u,
float & v,
float & t )

The documentation for this class was generated from the following files: