Return bool for positive or negative vector3

I have a single vector3 that changes to each direction, e.g. (Vector.right, Vector.down) depending on the target hit in game, is there a way I can detect whether it’s positive or negative direction? Something like :

if (dirVec > Vector3.zero) //positive

for (int xyz = 0; xyz < 3; xyz++){
    if(directionVector3[xyz] > 0f)
    {
        //positive
    }
}

Today I learned Vectors have indexer properties.

4 Likes