Skip to Main Content
3D Game Engine Design, 2nd Edition
book

3D Game Engine Design, 2nd Edition

by David Eberly
November 2006
Intermediate to advanced content levelIntermediate to advanced
1040 pages
26h 31m
English
CRC Press
Content preview from 3D Game Engine Design, 2nd Edition
654 Chapter 14 Distance Methods
The
Normalize function normalizes its input to unit length and returns the length of
the input before normalization.
Just as U and V may be precomputed and stored with the line’s data structure, if
the line will be used in multiple distance queries, you may precompute the vectors E
0
,
E
1
, and N and store them with the triangle’s data st ructure if the triangle will be used
in multiple distance queries.
14.4.2 Ray to Triangle
This algorithm may be computed from scratch in a manner similar to that for line-
triangle distance, but instead I make use of the line-triangle distance function. The
line containing the ray is used in the line-triangle distance function call. One of the
return values is t, the parameter corresponding ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

3D Game Engine Architecture

3D Game Engine Architecture

David Eberly
Blender 3D By Example - Second Edition

Blender 3D By Example - Second Edition

Oscar Baechler, Xury Greer
Computer Graphics

Computer Graphics

Alexey Boreskov, Evgeniy Shikin

Publisher Resources

ISBN: 9781482267303