Generated by DocFX

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 Source

FHex(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 Source

Q

Q axis position

Declaration
public readonly double Q { get; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

R

R axis position

Declaration
public readonly double R { get; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

S

S axis position

Declaration
public readonly double S { get; }
Property Value
Type Description
System.Double

Methods

| Improve this Doc View Source

Lerp(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
| Improve this Doc View Source

Round()

Get the closest non-fractional Hex coordinate

Declaration
public Hex Round()
Returns
Type Description
Hex