#include "omicron/internal.h"
#include <math.h>
Go to the source code of this file.
Functions | |
| plane_t | plane_frompoints (const vec3_t a, const vec3_t b, const vec3_t c) |
| create a plane | |
| float | plane_line_intersect (const vec3_t a, const vec3_t b, const plane_t *p, vec3_t out) |
| float | plane_pointdist (const vec3_t v, const plane_t *p) |
| int | plane_pointside (const vec3_t v, const plane_t *p) |
| int | plane_clip_box (const plane_t *p, const bbox_t *bbox) |
Definition in file m_plane.cpp.
|
||||||||||||
|
check box side Checks which side the box is on. Returns 1 if box is totally in front, 0 if partially in front and -1 if totally invisible.
Definition at line 142 of file m_plane.cpp. References plane_pointside(), and vec3_c::set(). |
|
||||||||||||||||
|
Definition at line 53 of file m_plane.cpp. References vec3_c::copy(), vec3_c::cross(), plane_s::d, vec3_c::dot(), plane_s::n, vec3_c::normalize(), and vec3_t. Referenced by landscape_c::create_normals(). |
|
||||||||||||||||||||
|
find intersection Finds the intersection point of a plane and a line. The result is stored in out. The return value is the fraction of the distance between b (1.0) and a (0.0).
Definition at line 83 of file m_plane.cpp. References vec3_c::copy(), and vec3_t. Referenced by brushface_c::cut(). |
|
||||||||||||
|
get the distance from a plane Returns the distance of a point from a plane.
Definition at line 112 of file m_plane.cpp. References vec3_t. Referenced by brushface_c::cut(). |
|
||||||||||||
|
check which side point is on 1 if in front, 0 if coincident and -1 if behind
Definition at line 127 of file m_plane.cpp. References _sgn(), and vec3_t. Referenced by landscape_c::is_node_visible(), and plane_clip_box(). |
1.2.18