Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (x:Numero, y:Numero): Punto
- (a:Punto, b:Punto): Segmento
- (x:Numero, y:Numero): Vector
- (s:Segmento) -> ((s.b.x - s.a.x), (s.b.y - s.a.y)): Segmento_a_Vector
- (v:Vector) -> ((v.x^2 + v.y^2)^(1/2)): Modulo
- (v:Vector) -> (v.x/(v):Modulo, v.y/(v):Modulo): Versor
- (v:Vector, n:Numero) -> (v.x * n, v.y * n): VectorEscalado
Advertisement
Add Comment
Please, Sign In to add comment