Struct FHex
Fractional Hex Coordinate
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Ladybug
Assembly: ladybug.dll
Syntax
public struct FHex
Constructors
| Improve this Doc View SourceFHex(Double, Double, Double)
Create a fractional hex coordinate
Declaration
public FHex(double q, double r, double s)
Parameters
Type | Name | Description |
---|---|---|
System.Double | q | |
System.Double | r | |
System.Double | s |
Properties
| Improve this Doc View SourceQ
Q axis position
Declaration
public readonly double Q { get; }
Property Value
Type | Description |
---|---|
System.Double |
R
R axis position
Declaration
public readonly double R { get; }
Property Value
Type | Description |
---|---|
System.Double |
S
S axis position
Declaration
public readonly double S { get; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
| Improve this Doc View SourceLerp(FHex, Double)
Linearly interpolate to the given FHex
Declaration
public FHex Lerp(FHex b, double t)
Parameters
Type | Name | Description |
---|---|---|
FHex | b | |
System.Double | t |
Returns
Type | Description |
---|---|
FHex |
Round()
Get the closest non-fractional Hex coordinate
Declaration
public Hex Round()
Returns
Type | Description |
---|---|
Hex |