convert VB to C#
This commit is contained in:
35
Pilz.Simple3DFileParser/Model/Material.cs
Normal file
35
Pilz.Simple3DFileParser/Model/Material.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using global::System.Numerics;
|
||||
|
||||
namespace Pilz.S3DFileParser
|
||||
{
|
||||
public class Material : IComparable
|
||||
{
|
||||
public Image Image { get; set; } = null;
|
||||
public Color? Color { get; set; } = default;
|
||||
public float? Opacity { get; set; } = default;
|
||||
public Vector2 Wrap { get; set; } = new Vector2(10497f, 10497f);
|
||||
public Vector2 Scale { get; set; } = new Vector2(1.0f, 1.0f);
|
||||
public object Tag { get; set; } = null;
|
||||
|
||||
public int CompareTo(object obj)
|
||||
{
|
||||
if (obj is object)
|
||||
{
|
||||
if (ReferenceEquals(obj, this))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user