Struct UV
A UV coordinate.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Elements.Geometry
Assembly: Hypar.Elements.dll
Syntax
public struct UV
Constructors
UV(Double, Double)
Construct a uv coordinate.
Declaration
[JsonConstructor]
public UV(double u, double v)
Parameters
Type | Name | Description |
---|---|---|
System.Double | u | The U coordinate. |
System.Double | v | The V coordinate. |
Properties
U
The U coordinate.
Declaration
[JsonProperty("U", Required = Required.Always)]
public double U { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
V
The V coordinate.
Declaration
[JsonProperty("V", Required = Required.Always)]
public double V { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
Equals(Object)
Are the two uvs equal?
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.ValueType.Equals(System.Object)
GetHashCode()
Get the hash code for the uv.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.ValueType.GetHashCode()
ToString()
A string representation of the uv.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.ValueType.ToString()
Operators
Equality(UV, UV)
Are the two UVs equal?
Declaration
public static bool operator ==(UV a, UV b)
Parameters
Type | Name | Description |
---|---|---|
UV | a | |
UV | b |
Returns
Type | Description |
---|---|
System.Boolean |
Implicit((Double u, Double v) to UV)
Automatically convert a tuple of two doubles into a UV.
Declaration
public static implicit operator UV((double u, double v) uv)
Parameters
Type | Name | Description |
---|---|---|
System.ValueTuple<System.Double, System.Double> | uv | An (u,v) tuple of doubles. |
Returns
Type | Description |
---|---|
UV |
Inequality(UV, UV)
Are the two UVs equal?
Declaration
public static bool operator !=(UV a, UV b)
Parameters
Type | Name | Description |
---|---|---|
UV | a | |
UV | b |
Returns
Type | Description |
---|---|
System.Boolean |