Kaim::Triangle3f Class Reference

Kaim::Triangle3f Class Reference

#include <triangle3f.h>

Class Description

This class represents a triangle in three-dimensional space, whose dimensions are stored using float values.

This class is used primarily for sending blobs containing triangle information.

+ Examples:

Public Member Functions

void Set (const Vec3f &_a, const Vec3f &_b, const Vec3f &_c)
 
Vec3foperator[] (KyInt32 i)
 
const Vec3foperator[] (KyInt32 i) const
 

Public Data Members

Vec3f A
 
Vec3f B
 
Vec3f C
 

Member Function Documentation

Vec3f& Kaim::Triangle3f::operator[] ( KyInt32  i)
inline

Retrieves the coordinates of the specified corner of the triangle. Use only [0], [1], or [2].

const Vec3f& Kaim::Triangle3f::operator[] ( KyInt32  i) const
inline

Retrieves the coordinates of the specified corner of the triangle. Use only [0], [1], or [2].

void Kaim::Triangle3f::Set ( const Vec3f _a,
const Vec3f _b,
const Vec3f _c 
)
inline

Sets the coordinates of the three points that make up the triangle.

Parameters
_aThe coordinates of the first corner of the triangle.
_bThe coordinates of the second corner of the triangle.
_cThe coordinates of the third corner of the triangle.

Member Data Documentation

Vec3f Kaim::Triangle3f::A

The position of the first corner of the triangle.

Vec3f Kaim::Triangle3f::B

The position of the second corner of the triangle.

Vec3f Kaim::Triangle3f::C

The position of the third corner of the triangle.


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