resonance 1.0.1
Loading...
Searching...
No Matches
plane.h
Go to the documentation of this file.
1#pragma once
2
3#include "math/vector3.h"
4
14struct Plane {
15 float a;
16 float b;
17 float c;
18 float d;
19};
20
33Plane TransformPlaneToWorld(const Plane &plane, const float *pXfm);
34
48void InterpolateFourFloats(const float *pFrom, const float *pTo, float *pOut, float flT);
49
63bool IntersectSegmentWithPlane(const Vector3 segment[2], const Plane &plane, float *pT);
64
71struct Segment {
73};
74
91Segment IntersectPlanes(const Plane &first, const Plane &second);
92
107Vector3 IntersectPlanes(const Plane &first, const Plane &second, const Plane &third);
bool IntersectSegmentWithPlane(const Vector3 segment[2], const Plane &plane, float *pT)
Find where a segment crosses a plane.
Plane TransformPlaneToWorld(const Plane &plane, const float *pXfm)
Move a plane out of the space a transform is expressed in.
Segment IntersectPlanes(const Plane &first, const Plane &second)
Find the line two planes meet along.
void InterpolateFourFloats(const float *pFrom, const float *pTo, float *pOut, float flT)
Blend four consecutive floats linearly.
Plane equation, padded to a PlayStation 2 quadword.
Definition plane.h:14
float b
Definition plane.h:16
float d
Definition plane.h:18
float a
Definition plane.h:15
float c
Definition plane.h:17
Two points that fix a line or a segment.
Definition plane.h:71
Vector3 mEnds[2]
Definition plane.h:72
Three-component vector, padded to a PlayStation 2 quadword.
Definition vector3.h:12