You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
733 B
43 lines
733 B
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
/// <summary>
|
|
/// Managed equivalent of vec3_t
|
|
/// </summary>
|
|
[StructLayout(LayoutKind.Sequential, Pack = 0)]
|
|
public struct QVec3
|
|
{
|
|
public float x;
|
|
public float y;
|
|
public float z;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential, Pack = 0)]
|
|
public struct QVec2
|
|
{
|
|
public float x;
|
|
public float y;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential, Pack = 0)]
|
|
public struct QVec4i
|
|
{
|
|
public int x;
|
|
public int y;
|
|
public int z;
|
|
public int w;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential, Pack = 0)]
|
|
public struct QVec2s
|
|
{
|
|
public short x;
|
|
public short y;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential, Pack = 0)]
|
|
public struct QVec2i
|
|
{
|
|
public int x;
|
|
public int y;
|
|
}
|