Geometry

Inherits: Object

Category: Core

Brief Description

Member Functions

Array build_box_planes ( Vector3 extents )
Array build_capsule_planes ( float radius, float height, int sides, int lats, int axis=2 )
Array build_cylinder_planes ( float radius, float height, int sides, int axis=2 )
Vector3 get_closest_point_to_segment ( Vector3 point, Vector3 s1, Vector3 s2 )
Vector2 get_closest_point_to_segment_2d ( Vector2 point, Vector2 s1, Vector2 s2 )
Vector3 get_closest_point_to_segment_uncapped ( Vector3 point, Vector3 s1, Vector3 s2 )
Vector2 get_closest_point_to_segment_uncapped_2d ( Vector2 point, Vector2 s1, Vector2 s2 )
Vector3Array get_closest_points_between_segments ( Vector3 p1, Vector3 p2, Vector3 q1, Vector3 q2 )
Vector2Array get_closest_points_between_segments_2d ( Vector2 p1, Vector2 q1, Vector2 p2, Vector2 q2 )
int get_uv84_normal_bit ( Vector3 normal )
Dictionary make_atlas ( Vector2Array sizes )
bool point_is_inside_triangle ( Vector2 point, Vector2 a, Vector2 b, Vector2 c ) const
void ray_intersects_triangle ( Vector3 from, Vector3 dir, Vector3 a, Vector3 b, Vector3 c )
float segment_intersects_circle ( Vector2 segment_from, Vector2 segment_to, Vector2 circle_pos, float circle_radius )
Vector3Array segment_intersects_convex ( Vector3 from, Vector3 to, Array planes )
Vector3Array segment_intersects_cylinder ( Vector3 from, Vector3 to, float height, float radius )
void segment_intersects_segment_2d ( Vector2 from_a, Vector2 to_a, Vector2 from_b, Vector2 to_b )
Vector3Array segment_intersects_sphere ( Vector3 from, Vector3 to, Vector3 spos, float sradius )
void segment_intersects_triangle ( Vector3 from, Vector3 to, Vector3 a, Vector3 b, Vector3 c )
IntArray triangulate_polygon ( Vector2Array polygon )

Member Function Description