All Content
Blogs
Forums
News
Tutorials
Log In
Sign Up
Login
Username / Email
Password
Remember me
Forgot password?
Login
or
Don't have a GameDev.net account?
Sign up
Forgot your password?
Email Address
Reset Password
Please contact us if you have any trouble resetting your password.
Home
Blogs
Forums
News
Portfolios
Projects
Tutorials
25
users logged in
Proud partner of GDC 2025
New?
Learn about game development
.
Before posting, review our
community guidelines
.
Support GameDev.net with a monthly
GDNet+ subscription
!
Follow Us
Chat in the
GameDev.net Discord!
Back to Math and Physics
Advertisement
Line Segment Length
Math and Physics
Programming
Started by
jonbell
December 10, 2002 10:01 AM
0
comments, last by
jonbell
22 years, 2 months ago
jonbell
Author
100
December 10, 2002 10:01 AM
Given 2 3D points p1(x,y,z) & p2(x,y,z) how do i determine the length of a line that connects them?
Cancel
Save
Deyja
920
December 10, 2002 10:07 AM
sqrt( (x2-x1)^2 + (y2-y1)^2 + (z2-z1)^2 )
http://jemgine.omnisu.com
Cancel
Save
This topic is closed to new replies.
Advertisement
Popular Topics
C++ pointers that are released upon going out of scope
General and Gameplay Programming
Another better idea than GTA (change my mind)
GDNet Lounge
computer malfunction in visual studio 1&0 != 0!!!
General and Gameplay Programming
click and drag sprite
For Beginners
How to Resolve This Normal Issue?
Graphics and GPU Programming
Returning an object on the stack in a variadic function causes a crash
AngelCode
Advertisement
Recommended Tutorials
AI Uncertainty and Bayesian Networks - comp.ai.games Thread
Artificial Intelligence
Sillysoft
Interviews
Hollow Knight Design Critique
Game Design and Theory
Ramblings in Realtime: Chapter 3 - Sorted Spans in Action
Graphics and GPU Programming
Simplify Your Life With Mesh Simplifier
General and Gameplay Programming
Advertisement
Reticulating splines
About GameDev.net
Community Guidelines
Terms of Service
Privacy Policy
Contact Us
Copyright (c) 1999-2025 GameDev.net, LLC
Back to Top