6[SuppressMessage(
"Microsoft.Performance",
"CA1815:OverrideEqualsAndOperatorEqualsOnValueTypes")]
127 public Viewport(
int x,
int y,
int width,
int height)
157 return num <=
float.Epsilon;
167 float num = source.X * matrix.M14 + source.Y * matrix.M24 + source.Z * matrix.M34 + matrix.
M44;
172 result.X = (result.X + 1f) * 0.5f * (
float)
Width + (float)
X;
173 result.Y = (0f - result.Y + 1f) * 0.5f * (
float)
Height + (float)
Y;
183 source.X = (source.X - (float)
X) / (float)
Width * 2f - 1f;
184 source.Y = 0f - ((source.Y - (float)
Y) / (float)
Height * 2f - 1f);
187 float num = source.X * matrix.M14 + source.Y * matrix.M24 + source.Z * matrix.M34 + matrix.
M44;
static CultureInfo CurrentCulture
Vector3 Project(Vector3 source, Matrix projection, Matrix view, Matrix world)
Viewport(int x, int y, int width, int height)
override string ToString()
static Rectangle GetTitleSafeArea(int x, int y, int w, int h)
Vector3 Unproject(Vector3 source, Matrix projection, Matrix view, Matrix world)
Viewport(Rectangle bounds)
static bool WithinEpsilon(float a, float b)
static Matrix Invert(Matrix matrix)
static Matrix Multiply(Matrix matrix1, Matrix matrix2)
static Vector3 Transform(Vector3 position, Matrix matrix)