Add vector_{length2,length,normalize}()
This commit is contained in:
parent
0377a651f5
commit
33c5e25f32
2 changed files with 51 additions and 0 deletions
|
@ -21,6 +21,9 @@ extern const Vector3 ZeroVector3;
|
|||
Vector3 vector_init(float x, float y, float z);
|
||||
Vector3 vector_mult_scalar(Vector3 v, float f);
|
||||
Vector3 vector_mult_vector(Vector3 v, Vector3 f);
|
||||
float vector_length2(Vector3 v);
|
||||
float vector_length(Vector3 v);
|
||||
Vector3 vector_normalize(Vector3 v);
|
||||
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue