User Tools

Site Tools


prpl:distance

This is an old revision of the document!


<- PRPL reference <- Everything Else 2

DISTANCE

ArgumentsResultNotation
[ - ]

Description

Examples

	float y1 = GetFloatFromStack(); 
	float x1 = GetFloatFromStack(); 
	float y2 = GetFloatFromStack(); 
	float x2 = GetFloatFromStack(); 
	float di = Mathf.Sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1)); 
	stack.Push(new Data(di)); 
 
prpl/distance.1480721636.txt.gz · Last modified: 2025/02/14 14:56 (external edit)