GH_Interval2D

GH_Goo<1>References
Represents a two-dimensional numeric domain.

Constructors

GH_Interval2D

#
public GH_Interval2D()
Default constructor. Creates two empty intervals.

GH_Interval2D

#
public GH_Interval2D(GH_Interval2D other)
Create a duplicate of another two-dimensional interval
other (GH_Interval2D)Interval to copy. If null, a default interval will be created.

GH_Interval2D

#
public GH_Interval2D(UVInterval uv)
Duplicates a one-dimensional interval in both directions.
uv (UVInterval)UVInterval value.

Fields

m_value

protected T m_value
inherited fromGH_Goo<T>

Properties

IsValid

#
public override bool IsValid { get; }
Gets the validity of this instance. Valid intervals contain no #NaN extremes

IsValidWhyNot

#
public override string IsValidWhyNot { get; }
Gets a string describing the state of "invalidness". If the instance is valid, then this property should return Nothing or String.Empty.

TypeDescription

#
public override string TypeDescription { get; }

TypeName

#
public override string TypeName { get; }

Value

public virtual T Value { get; set; }
Gets or sets the internal data.
inherited fromGH_Goo<T>

Methods

CastFrom

#
public override bool CastFrom(object source)
Remote to Local caster function. This stuff is complex, don't concern yourself with casting logic.
source (object)

CastTo<T>

#
public override bool CastTo<T>(ref T target)
Local to Remote caster function. this stuff is complex, don't concern yourself with casting logic.
target (ref T)
GH_Goo<T>.CastTo

Duplicate

#
public override IGH_Goo Duplicate()
Create a duplicate of this interval.

DuplicateInterval

#
public GH_Interval2D DuplicateInterval()
Create a duplicate of this interval.

EmitProxy

#
public override IGH_GooProxy EmitProxy()
Returns a proxy that represents this interval. Do not call this function unless you're

Read

#
public override bool Read(GH_IReader reader)
reader (GH_IReader)
GH_Goo<T>.Read

ScriptVariable

public virtual object ScriptVariable()
This function will be called when the local IGH_Goo instance disappears into a user Script. This would be an excellent place to cast your IGH_Goo type to a simple data type.
inherited fromGH_Goo<T>
The default implementation of this function returns the Value instance.
ScriptVariable

ToString

#
public override string ToString()
Format the interval using default grasshopper formatting logic.

Write

#
public override bool Write(GH_IWriter writer)
writer (GH_IWriter)
GH_Goo<T>.Write