Пример #1
0
    public short Get(TrajectoryExporter.AxisType axis)
    {
        switch (axis)
        {
        case TrajectoryExporter.AxisType.X:
            return(x);

        case TrajectoryExporter.AxisType.Y:
            return(y);

        case TrajectoryExporter.AxisType.Z:
            return(z);
        }

        return(0);
    }
Пример #2
0
    public static float Get(this Vector3 vector, TrajectoryExporter.AxisType axis)
    {
        switch (axis)
        {
        case TrajectoryExporter.AxisType.X:
            return(vector.x);

        case TrajectoryExporter.AxisType.Y:
            return(vector.y);

        case TrajectoryExporter.AxisType.Z:
            return(vector.z);
        }

        return(0);
    }