normalize

Help Contents geomland Object point normalize
pointP get_absc

geomland.normalize :p1


outputs the point :p1 divided by its length.

Definition:

to geomland.normalize :p1
	if (:p1.x=0) and (:p1.y=0)
	[ output :p1 ]
	[ output :p1 / (sqrt :p1.x*:p1.x+:p1.y*:p1.y)]    
end

Examples:

References:

pointP get_absc