Public Member Functions | Public Attributes | List of all members
AABB Class Reference

#include <aabb.h>

Public Member Functions

float get_area () const
 
_FORCE_INLINE_ bool has_no_area () const
 get area
 
_FORCE_INLINE_ bool has_no_surface () const
 
const Vector3get_pos () const
 
void set_pos (const Vector3 &p_pos)
 
const Vector3get_size () const
 
void set_size (const Vector3 &p_size)
 
bool operator== (const AABB &p_rval) const
 
bool operator!= (const AABB &p_rval) const
 
_FORCE_INLINE_ bool intersects (const AABB &p_aabb) const
 
_FORCE_INLINE_ bool intersects_inclusive (const AABB &p_aabb) const
 Both AABBs overlap.
 
_FORCE_INLINE_ bool encloses (const AABB &p_aabb) const
 Both AABBs (or their faces) overlap.
 
AABB merge (const AABB &p_with) const
 p_aabb is completely inside this
 
void merge_with (const AABB &p_aabb)
 
AABB intersection (const AABB &p_aabb) const
 merge with another AABB
 
bool intersects_segment (const Vector3 &p_from, const Vector3 &p_to, Vector3 *r_clip=NULL, Vector3 *r_normal=NULL) const
 get box where two intersect, empty if no intersection occurs
 
bool intersects_ray (const Vector3 &p_from, const Vector3 &p_dir, Vector3 *r_clip=NULL, Vector3 *r_normal=NULL) const
 
_FORCE_INLINE_ bool smits_intersect_ray (const Vector3 &from, const Vector3 &p_dir, float t0, float t1) const
 
_FORCE_INLINE_ bool intersects_convex_shape (const Plane *p_plane, int p_plane_count) const
 
bool intersects_plane (const Plane &p_plane) const
 
_FORCE_INLINE_ bool has_point (const Vector3 &p_point) const
 
_FORCE_INLINE_ Vector3 get_support (const Vector3 &p_normal) const
 
Vector3 get_longest_axis () const
 
int get_longest_axis_index () const
 
_FORCE_INLINE_ real_t get_longest_axis_size () const
 
Vector3 get_shortest_axis () const
 
int get_shortest_axis_index () const
 
_FORCE_INLINE_ real_t get_shortest_axis_size () const
 
AABB grow (real_t p_by) const
 
_FORCE_INLINE_ void grow_by (real_t p_amount)
 
void get_edge (int p_edge, Vector3 &r_from, Vector3 &r_to) const
 
_FORCE_INLINE_ Vector3 get_endpoint (int p_point) const
 
AABB expand (const Vector3 &p_vector) const
 
_FORCE_INLINE_ void project_range_in_plane (const Plane &p_plane, float &r_min, float &r_max) const
 
_FORCE_INLINE_ void expand_to (const Vector3 &p_vector)
 
 operator String () const
 
 AABB (const Vector3 &p_pos, const Vector3 &p_size)
 

Public Attributes

Vector3 pos
 
Vector3 size
 

Detailed Description

AABB / AABB (Axis Aligned Bounding Box) This is implemented by a point (pos) and the box size

Member Function Documentation

AABB::operator String ( ) const

expand to contain a point if necesary


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