47 lines
952 B
C#
47 lines
952 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace StgSharp.Math
|
|
{
|
|
[StructLayout(LayoutKind.Explicit)]
|
|
public struct colum4 : IEquatable<colum4>
|
|
{
|
|
[FieldOffset(0)]
|
|
public float X;
|
|
[FieldOffset(4)]
|
|
public float Y;
|
|
[FieldOffset(8)]
|
|
public float Z;
|
|
[FieldOffset(12)]
|
|
public float W;
|
|
|
|
public colum4(float x, float y, float z, float w)
|
|
{
|
|
X = x;
|
|
Y = y;
|
|
Z = z;
|
|
W = w;
|
|
}
|
|
|
|
public bool Equals(colum4 other)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public override bool Equals(object obj)
|
|
{
|
|
return base.Equals(obj);
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
return base.GetHashCode();
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return base.ToString();
|
|
}
|
|
}
|
|
}
|