public Vertex(Vector4 position, Vector4 normal, Vector4 tangent, Vector4 binormal, TextureCoordinate texcoord, IEnumerable <JointInfluence> jointinfluence, byte[] extradata) { this.Position = position; this.Normal = normal; this.Tangent = tangent; this.Binormal = binormal; this.TexCoord = texcoord; this.JointInfluence = jointinfluence == null ? new JointInfluence[0] : jointinfluence.ToArray(); this.ExtraData = extradata == null ? new byte[0] : extradata; }
public Vertex(Vector4 position, Vector4 normal, Vector4 tangent, Vector4 binormal, TextureCoordinate texcoord, IEnumerable<JointInfluence> jointinfluence, byte[] extradata) { this.Position = position; this.Normal = normal; this.Tangent = tangent; this.Binormal = binormal; this.TexCoord = texcoord; this.JointInfluence = jointinfluence == null ? new JointInfluence[0] : jointinfluence.ToArray(); this.ExtraData = extradata == null ? new byte[0] : extradata; }
public override bool Equals(object obj) { if (obj != null && obj is TextureCoordinate) { TextureCoordinate val = (TextureCoordinate)obj; return(val.U == U && val.V == V && val.Texture == Texture); } else { return(false); } }