SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Triangle Class Reference

Public Member Functions

Triangleoperator= (const Triangle &)
 
void fillData (CollisionParts *, unsigned long, HitSensor *)
 
const char * getHostName () const
 
s32 getHostPlacementZoneID () const
 
bool isHostMoved () const
 
bool isValid () const
 
const TVec3f * getNormal (int) const
 
const TVec3f * getFaceNormal () const
 
const TVec3f * getEdgeNormal (int) const
 
const TVec3f * getPos (int) const
 
const TVec3f * calcAndGetNormal (int)
 
const TVec3f * calcAndGetEdgeNormal (int)
 
const TVec3f * calcAndGetPos (int)
 
void calcForceMovePower (TVec3f *, const TVec3f &) const
 
JMapInfoIter getAttributes () const
 
TPos3f * getBaseMtx () const
 
TPos3f * getBaseInvMtx () const
 
TPos3f * getPrevBaseMtx () const
 

Public Attributes

CollisionPartsmParts
 
u32 mIdx
 
HitSensormSensor
 
TVec3f mNormals [4]
 
TVec3f mPos [3]
 

Detailed Description

Definition at line 10 of file HitInfo.hpp.

Constructor & Destructor Documentation

◆ Triangle()

Triangle::Triangle ( )

Definition at line 6 of file HitInfo.cpp.

Member Function Documentation

◆ operator=()

Triangle & Triangle::operator= ( const Triangle & rOther)

Definition at line 25 of file MarioActor.cpp.

◆ fillData()

void Triangle::fillData ( CollisionParts * pParts,
unsigned long index,
HitSensor * pSensor )

Definition at line 19 of file HitInfo.cpp.

◆ getHostName()

const char * Triangle::getHostName ( ) const

Definition at line 54 of file HitInfo.cpp.

◆ getHostPlacementZoneID()

s32 Triangle::getHostPlacementZoneID ( ) const

Definition at line 58 of file HitInfo.cpp.

◆ isHostMoved()

bool Triangle::isHostMoved ( ) const

Definition at line 62 of file HitInfo.cpp.

◆ isValid()

bool Triangle::isValid ( ) const

Definition at line 66 of file HitInfo.cpp.

◆ getNormal()

const TVec3f * Triangle::getNormal ( int index) const

Definition at line 70 of file HitInfo.cpp.

◆ getFaceNormal()

const TVec3f * Triangle::getFaceNormal ( ) const

Definition at line 74 of file HitInfo.cpp.

◆ getEdgeNormal()

const TVec3f * Triangle::getEdgeNormal ( int index) const

Definition at line 78 of file HitInfo.cpp.

◆ getPos()

const TVec3f * Triangle::getPos ( int index) const

Definition at line 82 of file HitInfo.cpp.

◆ calcAndGetNormal()

const TVec3f * Triangle::calcAndGetNormal ( int index)

Definition at line 86 of file HitInfo.cpp.

◆ calcAndGetEdgeNormal()

const TVec3f * Triangle::calcAndGetEdgeNormal ( int index)

Definition at line 130 of file HitInfo.cpp.

◆ calcAndGetPos()

const TVec3f * Triangle::calcAndGetPos ( int index)

Definition at line 166 of file HitInfo.cpp.

◆ calcForceMovePower()

void Triangle::calcForceMovePower ( TVec3f * a1,
const TVec3f & a2 ) const

Definition at line 179 of file HitInfo.cpp.

◆ getAttributes()

JMapInfoIter Triangle::getAttributes ( ) const

Definition at line 183 of file HitInfo.cpp.

◆ getBaseMtx()

TPos3f * Triangle::getBaseMtx ( ) const

Definition at line 195 of file HitInfo.cpp.

◆ getBaseInvMtx()

TPos3f * Triangle::getBaseInvMtx ( ) const

Definition at line 199 of file HitInfo.cpp.

◆ getPrevBaseMtx()

TPos3f * Triangle::getPrevBaseMtx ( ) const

Definition at line 203 of file HitInfo.cpp.

Member Data Documentation

◆ mParts

CollisionParts* Triangle::mParts

Definition at line 34 of file HitInfo.hpp.

◆ mIdx

u32 Triangle::mIdx

Definition at line 35 of file HitInfo.hpp.

◆ mSensor

HitSensor* Triangle::mSensor

Definition at line 36 of file HitInfo.hpp.

◆ mNormals

TVec3f Triangle::mNormals[4]

Definition at line 37 of file HitInfo.hpp.

◆ mPos

TVec3f Triangle::mPos[3]

Definition at line 38 of file HitInfo.hpp.