MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / PointsAreSame

Function PointsAreSame

editor/Erooms.cpp:1355–1359  ·  view source on GitHub ↗

Determines if two points are close enough together to be considered the same Parameters: v0,v1 - the two points Returns: true if the points are the same or very close; else false

Source from the content-addressed store, hash-verified

1353// Parameters: v0,v1 - the two points
1354// Returns: true if the points are the same or very close; else false
1355bool PointsAreSame(vector *v0, vector *v1) {
1356 float d = vm_VectorDistance(v0, v1);
1357
1358 return (d < POINT_TO_POINT_EPSILON);
1359}
1360
1361// Check to see if a point is in, in front of, or behind a plane
1362// Parameters: checkpoint - the point to check

Callers 10

CheckPortalFunction · 0.85
CheckDuplicatePointsFunction · 0.85
CheckPortalFacesFunction · 0.85
RemoveDuplicatePointsFunction · 0.85
MatchPortalFacesFunction · 0.85
JoinAllMatchingFacesFunction · 0.85
FixCracksFunction · 0.85
PlaceDoorFunction · 0.85
CombineLightFacesFunction · 0.85

Calls 1

vm_VectorDistanceFunction · 0.50

Tested by

no test coverage detected