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

#include <VectorTools.hh>

Public Member Functions

 TriangleProperties (Point p1, Point p2, Point p3)
Point Center () const
float side_length_1_2 () const
float side_length_2_3 () const
float side_length_3_1 () const
Point circum_center () const
float circum_radius () const
Point barycentric_to_point (Point bary) const
bool is_inside_circum_sphere (Point p) const

Static Public Member Functions

static Point uv_to_bary (float u, float v)
static Point texture_to_barycentric (Point2d v1, Point2d v2, Point2d v3, Point2d p)
static bool is_inside_triangle (Point bary)

Constructor & Destructor Documentation

◆ TriangleProperties()

TriangleProperties::TriangleProperties ( Point p1,
Point p2,
Point p3 )
inline

Member Function Documentation

◆ barycentric_to_point()

Point TriangleProperties::barycentric_to_point ( Point bary) const
inline
Here is the caller graph for this function:

◆ Center()

Point TriangleProperties::Center ( ) const
inline

◆ circum_center()

Point TriangleProperties::circum_center ( ) const
inline
Here is the caller graph for this function:

◆ circum_radius()

float TriangleProperties::circum_radius ( ) const
inline
Here is the caller graph for this function:

◆ is_inside_circum_sphere()

bool TriangleProperties::is_inside_circum_sphere ( Point p) const

◆ is_inside_triangle()

bool TriangleProperties::is_inside_triangle ( Point bary)
inlinestatic

◆ side_length_1_2()

float TriangleProperties::side_length_1_2 ( ) const
inline
Here is the caller graph for this function:

◆ side_length_2_3()

float TriangleProperties::side_length_2_3 ( ) const
inline
Here is the caller graph for this function:

◆ side_length_3_1()

float TriangleProperties::side_length_3_1 ( ) const
inline
Here is the caller graph for this function:

◆ texture_to_barycentric()

Point TriangleProperties::texture_to_barycentric ( Point2d v1,
Point2d v2,
Point2d v3,
Point2d p )
inlinestatic

◆ uv_to_bary()

Point TriangleProperties::uv_to_bary ( float u,
float v )
inlinestatic

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