# X,Y or Z of FVector unset?

**URL:** <https://forums.unrealengine.com/t/x-y-or-z-of-fvector-unset/344384>\
**Category:** C++\
**Tags:** fvector, unreal-engine, CPP, question\
**Created:** [January 17, 2016, 7:19pm UTC](https://forums.unrealengine.com/t/x-y-or-z-of-fvector-unset/344384 "2016-01-17T19:19:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![padmalcom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@padmalcom](https://forums.unrealengine.com/u/padmalcom)\
**Post date:** [January 17, 2016, 7:19pm UTC](https://forums.unrealengine.com/t/x-y-or-z-of-fvector-unset/344384/1 "2016-01-17T19:19:13Z")

</div>

I’m experiencing quite a strange error at the moment. I use a spline to calculate vertices along a path. When I print the vectors (using _vec.ToCompactString()_) I’m calculating I get something like:

V(X=-100.00, Y=20.00) or V(Y=20.00)

But I’m expecting 3 components here (namely X,Y and Z). Can that be that some components of a vector are not set?

---

<div class="post-metadata">

**Author:** ![Daekesh](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/daekesh/32/918652_2.png) [@Daekesh](https://forums.unrealengine.com/u/Daekesh)\
**Post date:** [January 17, 2016, 7:21pm UTC](https://forums.unrealengine.com/t/x-y-or-z-of-fvector-unset/344384/2 "2016-01-17T19:21:10Z")

</div>

Since you’re using _Compact_ string, I imagine it’s not printing the values that are 0. That doesn’t mean they aren’t set, just that their value is 0.

---

<div class="post-metadata">

**Author:** ![padmalcom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@padmalcom](https://forums.unrealengine.com/u/padmalcom)\
**Post date:** [January 17, 2016, 7:24pm UTC](https://forums.unrealengine.com/t/x-y-or-z-of-fvector-unset/344384/3 "2016-01-17T19:24:20Z")

</div>

Hi TTaM, thanks. Sorry that was a dumb question… had a look at the source code and saw it myself.
