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

#include <VectorTools.hh>

Collaboration diagram for Plane:

Public Member Functions

 Plane (Point u_p, Vector v1, Vector v2)
 Plane (const Plane &p)
 Plane ()
void Normalize ()
float Dist (Point p) const
float CoordsX (Point p) const
float CoordsY (Point p) const
bool WhichSideOfPlane (Point p) const
Vector Normal (float length) const
void RotateAroundNormal (float angle_in_rad)
Point Navigate (const Point2d &p)
Vector PlaneNormal ()
float Dist2 (Point p)
bool LineSegmentIntersection (Point p1, Point p2, Point2d &outP)
bool TriangleIntersection (Point p1, Point p2, Point p3, Point2d &res1, Point2d &res2)

Public Attributes

Point u_p
Vector u_x
Vector u_y

Constructor & Destructor Documentation

◆ Plane() [1/3]

Plane::Plane ( Point u_p,
Vector v1,
Vector v2 )
inline
Here is the caller graph for this function:

◆ Plane() [2/3]

Plane::Plane ( const Plane & p)
inline

◆ Plane() [3/3]

Plane::Plane ( )
inline

Member Function Documentation

◆ CoordsX()

float Plane::CoordsX ( Point p) const
Here is the caller graph for this function:

◆ CoordsY()

float Plane::CoordsY ( Point p) const
Here is the caller graph for this function:

◆ Dist()

float Plane::Dist ( Point p) const

◆ Dist2()

float Plane::Dist2 ( Point p)

◆ LineSegmentIntersection()

bool Plane::LineSegmentIntersection ( Point p1,
Point p2,
Point2d & outP )
Here is the caller graph for this function:

◆ Navigate()

Point Plane::Navigate ( const Point2d & p)
Here is the caller graph for this function:

◆ Normal()

Vector Plane::Normal ( float length) const
Here is the caller graph for this function:

◆ Normalize()

void Plane::Normalize ( )
inline

◆ PlaneNormal()

Vector Plane::PlaneNormal ( )
inline

◆ RotateAroundNormal()

void Plane::RotateAroundNormal ( float angle_in_rad)

◆ TriangleIntersection()

bool Plane::TriangleIntersection ( Point p1,
Point p2,
Point p3,
Point2d & res1,
Point2d & res2 )

◆ WhichSideOfPlane()

bool Plane::WhichSideOfPlane ( Point p) const

Member Data Documentation

◆ u_p

Point Plane::u_p

◆ u_x

Vector Plane::u_x

◆ u_y

Vector Plane::u_y

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