You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Manoylov Andriy eb8d3c5f80 add ukrainian translation 10 months ago
..
README-ua.md add ukrainian translation 10 months ago
README-vi.md Translate the glossary section 4 years ago
README.md Remove trailing whitespaces 7 years ago

README.md

Distance

Calculate the distance between two points

Declaration

float distance(float p0, float p1)  
float distance(vec2 p0, vec2 p1)  
float distance(vec3 p0, vec3 p1)  
float distance(vec4 p0, vec4 p1)

Parameters

p0 specifies the first of two points

p1 specifies the second of two points

Description

distance() returns the distance between the two points p0 and p1.

See Also

length(), normalize(), Chapter 07: Shapes