102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
Loading...
Searching...
No Matches
geometry.c File Reference
#include "pcdogs/math/constants.h"
#include "pcdogs/actor/constants.h"
#include "pcdogs/collision/constants.h"
#include "pcdogs/actor/globals.h"
#include "pcdogs/collision/functions.h"
#include "pcdogs/collision/globals.h"
#include "pcdogs/image/globals.h"
#include "pcdogs/image/storage.h"
#include "pcdogs/math/types.h"
#include "pcdogs/trail/functions.h"
#include <math.h>
#include <stdarg.h>
#include <string.h>

Go to the source code of this file.

Functions

int32_t Collision_GetShapeRadiusQ12 (const struct Actor_CollisionShapeNodeView *shape)
static int32_t Math_DotProduct3Q12 (int32_t ax, int32_t ay, int32_t az, int32_t bx, int32_t by, int32_t bz)
void Collision_InitializePlaneLookupTables ()
uint8_t Collision_CheckLineSphereIntersection (struct Actor_State *actor, struct Math_Vec3I32 *sphere_center, struct Math_Vec3I32 *segment_delta, uint32_t sphere_radius)
uint8_t Collision_TestLineSphereIntersection (struct Math_Vec3I32 *line_start, struct Math_Vec3I32 *segment_delta, uint32_t sphere_radius)

Function Documentation

◆ Collision_CheckLineSphereIntersection()

uint8_t Collision_CheckLineSphereIntersection ( struct Actor_State * actor,
struct Math_Vec3I32 * sphere_center,
struct Math_Vec3I32 * segment_delta,
uint32_t sphere_radius )

Definition at line 64 of file geometry.c.

◆ Collision_GetShapeRadiusQ12()

int32_t Collision_GetShapeRadiusQ12 ( const struct Actor_CollisionShapeNodeView * shape)

Definition at line 17 of file geometry.c.

◆ Collision_InitializePlaneLookupTables()

void Collision_InitializePlaneLookupTables ( void )

Definition at line 43 of file geometry.c.

◆ Collision_TestLineSphereIntersection()

uint8_t Collision_TestLineSphereIntersection ( struct Math_Vec3I32 * line_start,
struct Math_Vec3I32 * segment_delta,
uint32_t sphere_radius )

Definition at line 102 of file geometry.c.

◆ Math_DotProduct3Q12()

int32_t Math_DotProduct3Q12 ( int32_t ax,
int32_t ay,
int32_t az,
int32_t bx,
int32_t by,
int32_t bz )
static

Definition at line 34 of file geometry.c.