Search Results for

    Show / Hide Table of Contents

    Struct Colorf

    Implements
    IComparable<Colorf>
    IEquatable<Colorf>
    Inherited Members
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: g3
    Assembly: cs.temp.dll.dll
    Syntax
    public struct Colorf : IComparable<Colorf>, IEquatable<Colorf>

    Constructors

    Colorf(Colorf)

    Declaration
    public Colorf(Colorf copy)
    Parameters
    Type Name Description
    Colorf copy

    Colorf(Colorf, Single)

    Declaration
    public Colorf(Colorf copy, float newAlpha)
    Parameters
    Type Name Description
    Colorf copy
    Single newAlpha

    Colorf(Int32, Int32, Int32, Int32)

    Declaration
    public Colorf(int r, int g, int b, int a = 255)
    Parameters
    Type Name Description
    Int32 r
    Int32 g
    Int32 b
    Int32 a

    Colorf(Single, Single)

    Declaration
    public Colorf(float greylevel, float a = 1F)
    Parameters
    Type Name Description
    Single greylevel
    Single a

    Colorf(Single, Single, Single, Single)

    Declaration
    public Colorf(float r, float g, float b, float a = 1F)
    Parameters
    Type Name Description
    Single r
    Single g
    Single b
    Single a

    Colorf(Single[])

    Declaration
    public Colorf(float[] v2)
    Parameters
    Type Name Description
    Single[] v2

    Fields

    a

    Declaration
    public float a
    Field Value
    Type Description
    Single

    b

    Declaration
    public float b
    Field Value
    Type Description
    Single

    Black

    Declaration
    public static readonly Colorf Black
    Field Value
    Type Description
    Colorf

    Blue

    Declaration
    public static readonly Colorf Blue
    Field Value
    Type Description
    Colorf

    BlueMetal

    Declaration
    public static readonly Colorf BlueMetal
    Field Value
    Type Description
    Colorf

    CornflowerBlue

    Declaration
    public static readonly Colorf CornflowerBlue
    Field Value
    Type Description
    Colorf

    Cyan

    Declaration
    public static readonly Colorf Cyan
    Field Value
    Type Description
    Colorf

    DarkBlue

    Declaration
    public static readonly Colorf DarkBlue
    Field Value
    Type Description
    Colorf

    DarkGrey

    Declaration
    public static readonly Colorf DarkGrey
    Field Value
    Type Description
    Colorf

    DarkRed

    Declaration
    public static readonly Colorf DarkRed
    Field Value
    Type Description
    Colorf

    DarkSlateBlue

    Declaration
    public static readonly Colorf DarkSlateBlue
    Field Value
    Type Description
    Colorf

    DarkSlateGrey

    Declaration
    public static readonly Colorf DarkSlateGrey
    Field Value
    Type Description
    Colorf

    DarkYellow

    Declaration
    public static readonly Colorf DarkYellow
    Field Value
    Type Description
    Colorf

    DimGrey

    Declaration
    public static readonly Colorf DimGrey
    Field Value
    Type Description
    Colorf

    FireBrick

    Declaration
    public static readonly Colorf FireBrick
    Field Value
    Type Description
    Colorf

    ForestGreen

    Declaration
    public static readonly Colorf ForestGreen
    Field Value
    Type Description
    Colorf

    g

    Declaration
    public float g
    Field Value
    Type Description
    Single

    Gold

    Declaration
    public static readonly Colorf Gold
    Field Value
    Type Description
    Colorf

    Goldenrod

    Declaration
    public static readonly Colorf Goldenrod
    Field Value
    Type Description
    Colorf

    Green

    Declaration
    public static readonly Colorf Green
    Field Value
    Type Description
    Colorf

    Grey

    Declaration
    public static readonly Colorf Grey
    Field Value
    Type Description
    Colorf

    HotPink

    Declaration
    public static readonly Colorf HotPink
    Field Value
    Type Description
    Colorf

    LightGreen

    Declaration
    public static readonly Colorf LightGreen
    Field Value
    Type Description
    Colorf

    LightGrey

    Declaration
    public static readonly Colorf LightGrey
    Field Value
    Type Description
    Colorf

    LightPink

    Declaration
    public static readonly Colorf LightPink
    Field Value
    Type Description
    Colorf

    LightSlateGrey

    Declaration
    public static readonly Colorf LightSlateGrey
    Field Value
    Type Description
    Colorf

    LightSteelBlue

    Declaration
    public static readonly Colorf LightSteelBlue
    Field Value
    Type Description
    Colorf

    Magenta

    Declaration
    public static readonly Colorf Magenta
    Field Value
    Type Description
    Colorf

    Navy

    Declaration
    public static readonly Colorf Navy
    Field Value
    Type Description
    Colorf

    Orange

    Declaration
    public static readonly Colorf Orange
    Field Value
    Type Description
    Colorf

    PivotYellow

    Declaration
    public static readonly Colorf PivotYellow
    Field Value
    Type Description
    Colorf

    Purple

    Declaration
    public static readonly Colorf Purple
    Field Value
    Type Description
    Colorf

    r

    Declaration
    public float r
    Field Value
    Type Description
    Single

    Red

    Declaration
    public static readonly Colorf Red
    Field Value
    Type Description
    Colorf

    SaddleBrown

    Declaration
    public static readonly Colorf SaddleBrown
    Field Value
    Type Description
    Colorf

    SelectionGold

    Declaration
    public static readonly Colorf SelectionGold
    Field Value
    Type Description
    Colorf

    SiennaBrown

    Declaration
    public static readonly Colorf SiennaBrown
    Field Value
    Type Description
    Colorf

    Silver

    Declaration
    public static readonly Colorf Silver
    Field Value
    Type Description
    Colorf

    SlateGrey

    Declaration
    public static readonly Colorf SlateGrey
    Field Value
    Type Description
    Colorf

    StandardBeige

    Declaration
    public static readonly Colorf StandardBeige
    Field Value
    Type Description
    Colorf

    Teal

    Declaration
    public static readonly Colorf Teal
    Field Value
    Type Description
    Colorf

    TransparentBlack

    Declaration
    public static readonly Colorf TransparentBlack
    Field Value
    Type Description
    Colorf

    TransparentWhite

    Declaration
    public static readonly Colorf TransparentWhite
    Field Value
    Type Description
    Colorf

    VideoBlack

    Declaration
    public static readonly Colorf VideoBlack
    Field Value
    Type Description
    Colorf

    VideoBlue

    Declaration
    public static readonly Colorf VideoBlue
    Field Value
    Type Description
    Colorf

    VideoCyan

    Declaration
    public static readonly Colorf VideoCyan
    Field Value
    Type Description
    Colorf

    VideoGreen

    Declaration
    public static readonly Colorf VideoGreen
    Field Value
    Type Description
    Colorf

    VideoMagenta

    Declaration
    public static readonly Colorf VideoMagenta
    Field Value
    Type Description
    Colorf

    VideoRed

    Declaration
    public static readonly Colorf VideoRed
    Field Value
    Type Description
    Colorf

    VideoWhite

    Declaration
    public static readonly Colorf VideoWhite
    Field Value
    Type Description
    Colorf

    VideoYellow

    Declaration
    public static readonly Colorf VideoYellow
    Field Value
    Type Description
    Colorf

    Wheat

    Declaration
    public static readonly Colorf Wheat
    Field Value
    Type Description
    Colorf

    White

    Declaration
    public static readonly Colorf White
    Field Value
    Type Description
    Colorf

    Yellow

    Declaration
    public static readonly Colorf Yellow
    Field Value
    Type Description
    Colorf

    Properties

    Item[Int32]

    Declaration
    public float this[int key] { get; set; }
    Parameters
    Type Name Description
    Int32 key
    Property Value
    Type Description
    Single

    Methods

    Add(Colorf)

    Declaration
    public void Add(Colorf o)
    Parameters
    Type Name Description
    Colorf o

    Clone(Single)

    Declaration
    public Colorf Clone(float fAlphaMultiply = 1F)
    Parameters
    Type Name Description
    Single fAlphaMultiply
    Returns
    Type Description
    Colorf

    CompareTo(Colorf)

    Declaration
    public int CompareTo(Colorf other)
    Parameters
    Type Name Description
    Colorf other
    Returns
    Type Description
    Int32

    Equals(Colorf)

    Declaration
    public bool Equals(Colorf other)
    Parameters
    Type Name Description
    Colorf other
    Returns
    Type Description
    Boolean

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    ValueType.Equals(Object)

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    ValueType.GetHashCode()

    Lerp(Colorf, Colorf, Single)

    Declaration
    public static Colorf Lerp(Colorf a, Colorf b, float t)
    Parameters
    Type Name Description
    Colorf a
    Colorf b
    Single t
    Returns
    Type Description
    Colorf

    Set(Colorf)

    Declaration
    public void Set(Colorf o)
    Parameters
    Type Name Description
    Colorf o

    Set(Single, Single, Single, Single)

    Declaration
    public void Set(float fR, float fG, float fB, float fA)
    Parameters
    Type Name Description
    Single fR
    Single fG
    Single fB
    Single fA

    SetAlpha(Single)

    Declaration
    public Colorf SetAlpha(float a)
    Parameters
    Type Name Description
    Single a
    Returns
    Type Description
    Colorf

    SqrDistance(Colorf)

    Declaration
    public float SqrDistance(Colorf v2)
    Parameters
    Type Name Description
    Colorf v2
    Returns
    Type Description
    Single

    Subtract(Colorf)

    Declaration
    public void Subtract(Colorf o)
    Parameters
    Type Name Description
    Colorf o

    ToBytes()

    Declaration
    public Colorb ToBytes()
    Returns
    Type Description
    Colorb

    ToRGB()

    Declaration
    public Vector3f ToRGB()
    Returns
    Type Description
    Vector3f

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    ValueType.ToString()

    ToString(String)

    Declaration
    public string ToString(string fmt)
    Parameters
    Type Name Description
    String fmt
    Returns
    Type Description
    String

    WithAlpha(Single)

    Declaration
    public Colorf WithAlpha(float newAlpha)
    Parameters
    Type Name Description
    Single newAlpha
    Returns
    Type Description
    Colorf

    Operators

    Addition(Colorf, Colorf)

    Declaration
    public static Colorf operator +(Colorf v0, Colorf v1)
    Parameters
    Type Name Description
    Colorf v0
    Colorf v1
    Returns
    Type Description
    Colorf

    Addition(Colorf, Single)

    Declaration
    public static Colorf operator +(Colorf v0, float f)
    Parameters
    Type Name Description
    Colorf v0
    Single f
    Returns
    Type Description
    Colorf

    Equality(Colorf, Colorf)

    Declaration
    public static bool operator ==(Colorf a, Colorf b)
    Parameters
    Type Name Description
    Colorf a
    Colorf b
    Returns
    Type Description
    Boolean

    Implicit(Colorf to Vector3f)

    Declaration
    public static implicit operator Vector3f(Colorf c)
    Parameters
    Type Name Description
    Colorf c
    Returns
    Type Description
    Vector3f

    Implicit(Vector3f to Colorf)

    Declaration
    public static implicit operator Colorf(Vector3f c)
    Parameters
    Type Name Description
    Vector3f c
    Returns
    Type Description
    Colorf

    Inequality(Colorf, Colorf)

    Declaration
    public static bool operator !=(Colorf a, Colorf b)
    Parameters
    Type Name Description
    Colorf a
    Colorf b
    Returns
    Type Description
    Boolean

    Multiply(Colorf, Single)

    Declaration
    public static Colorf operator *(Colorf v, float f)
    Parameters
    Type Name Description
    Colorf v
    Single f
    Returns
    Type Description
    Colorf

    Multiply(Single, Colorf)

    Declaration
    public static Colorf operator *(float f, Colorf v)
    Parameters
    Type Name Description
    Single f
    Colorf v
    Returns
    Type Description
    Colorf

    Subtraction(Colorf, Colorf)

    Declaration
    public static Colorf operator -(Colorf v0, Colorf v1)
    Parameters
    Type Name Description
    Colorf v0
    Colorf v1
    Returns
    Type Description
    Colorf

    Subtraction(Colorf, Single)

    Declaration
    public static Colorf operator -(Colorf v0, float f)
    Parameters
    Type Name Description
    Colorf v0
    Single f
    Returns
    Type Description
    Colorf

    UnaryNegation(Colorf)

    Declaration
    public static Colorf operator -(Colorf v)
    Parameters
    Type Name Description
    Colorf v
    Returns
    Type Description
    Colorf

    Implements

    System.IComparable<T>
    System.IEquatable<T>
    In This Article
    Back to top ViRGIS VR GIS