53 lines
1.2 KiB
Markdown
53 lines
1.2 KiB
Markdown
|
# SVec
|
|||
|
|
|||
|
- *Mod*: `<built-in function Mod>`
|
|||
|
```
|
|||
|
res Mod(v1) : Devuelve el modulo de un vector
|
|||
|
```
|
|||
|
- *Norm*: `<built-in function Norm>`
|
|||
|
```
|
|||
|
res Norm(v1) : Normaliza un vector
|
|||
|
```
|
|||
|
- *Prod*: `<built-in function Prod>`
|
|||
|
```
|
|||
|
res Prod(v1,f) : multiplica un vector por un numero
|
|||
|
```
|
|||
|
- *ModSqr*: `<built-in function ModSqr>`
|
|||
|
```
|
|||
|
res ModSqr(v1) : Devuelve el modulo (al cuadrado) de un vector
|
|||
|
```
|
|||
|
- *DProd*: `<built-in function DProd>`
|
|||
|
```
|
|||
|
res DProd(v1,v2) : Calcula el producto escalar de dos vectores
|
|||
|
```
|
|||
|
- *Add*: `<built-in function Add>`
|
|||
|
```
|
|||
|
res Add(v1,v2) : suma dos vectores 3D
|
|||
|
```
|
|||
|
- *CProd*: `<built-in function CProd>`
|
|||
|
```
|
|||
|
vRes CProd(v1,v2) : Calcula el producto vectorial de dos vectores
|
|||
|
```
|
|||
|
- *NormAng*: `<built-in function NormAng>`
|
|||
|
```
|
|||
|
rAng NormAng(Ang) : Normaliza un angulo
|
|||
|
```
|
|||
|
- *Sub*: `<built-in function Sub>`
|
|||
|
```
|
|||
|
res Sub(v1,v2) : Resta dos vectores 3D
|
|||
|
```
|
|||
|
- *GetRotAng*: `<built-in function GetRotAng>`
|
|||
|
```
|
|||
|
AngX,AngY GetRotAng(vec) : Obtiene la rotacion de un vector
|
|||
|
```
|
|||
|
- *Rotate3D*: `<built-in function Rotate3D>`
|
|||
|
```
|
|||
|
res Rotate3D(src,rot) : Rota un vector
|
|||
|
```
|
|||
|
- *GetAngle*: `<built-in function GetAngle>`
|
|||
|
```
|
|||
|
Ang GetAngle(vec) : Obtiene el <20>ngulo entre dos vectores
|
|||
|
```
|
|||
|
|
|||
|
|