GH_Interval2D

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

Constructors

GH_Interval2D

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

GH_Interval2D

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

GH_Interval2D

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

Fields

m_value

protected T m_value
inherited fromGH_Goo<T>

Properties

IsValid

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

IsValidWhyNot

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

TypeDescription

#
public override string TypeDescription { get; }

TypeName

#
public override string TypeName { get; }

Value

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

Methods

CastFrom

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

CastTo<T>

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

Duplicate

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

DuplicateInterval

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

EmitProxy

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

Read

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

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.
public virtual object ScriptVariable()
inherited fromGH_Goo<T>
The default implementation of this function returns the Value instance.
ScriptVariable

ToString

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

Write

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