OLD_STEP_LIST_EDITOR
Documentation for the Unity C# Library
Loading...
Searching...
No Matches
Vector3Extensions.cs
Go to the documentation of this file.
1
using
UnityEngine;
2
3
namespace
PixoVR.Event.Utils
4
{
5
public
static
class
Vector3Extensions
6
{
7
public
static
Vector3
SetCoordinates
(
this
Vector3 vector,
float
? x =
null
,
float
? y =
null
,
float
? z =
null
)
8
{
9
return
new
Vector3(x ?? vector.x, y ?? vector.y, z ?? vector.z);
10
}
11
12
public
static
Vector3
ChangeByValues
(
this
Vector3 vector,
float
x = 0,
float
y = 0,
float
z = 0)
13
{
14
return
new
Vector3(vector.x + x, vector.y + y, vector.z + z);
15
}
16
17
public
static
Vector3
ProjectionToXZPlane
(
this
Vector3 vector)
18
{
19
return
vector.SetCoordinates(y: 0);
20
}
21
}
22
}
PixoVR.Event.Utils.Vector3Extensions
Definition
Vector3Extensions.cs:6
PixoVR.Event.Utils.Vector3Extensions.SetCoordinates
static Vector3 SetCoordinates(this Vector3 vector, float? x=null, float? y=null, float? z=null)
Definition
Vector3Extensions.cs:7
PixoVR.Event.Utils.Vector3Extensions.ChangeByValues
static Vector3 ChangeByValues(this Vector3 vector, float x=0, float y=0, float z=0)
Definition
Vector3Extensions.cs:12
PixoVR.Event.Utils.Vector3Extensions.ProjectionToXZPlane
static Vector3 ProjectionToXZPlane(this Vector3 vector)
Definition
Vector3Extensions.cs:17
PixoVR.Event.Utils
Definition
Vector3Extensions.cs:4
com.pixovr.eventunitysdk
Runtime
Sdk
Scripts
Utils
Vector3Extensions.cs
Generated
Wed Oct 9 2024 19:24:03
by Doxygen version
1.10.0