Show / Hide Table of Contents

    Class PointLight

    A point light.

    Examples
    var lightMaterial = new Material("Light", Colors.White, unlit: true);
    var t = new Transform(0, 0, 5);
    var lightBulb = new Mass(Polygon.Rectangle(0.1, 0.1), 0.1, lightMaterial, transform: t);
    
    var floor = new Floor(Polygon.Rectangle(20, 20), 0.1);
    var pointLight = new PointLight(Colors.White, t, 20);
    
    Inheritance
    System.Object
    Element
    Light
    PointLight
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    Light.LightType
    Light.Intensity
    Light.Color
    Light.Transform
    Element.Id
    Element.Name
    Element.AdditionalProperties
    Element.PropertyChanged
    Element.RaisePropertyChanged(String)
    Element.SetMapping(String, MappingBase)
    Element.GetMapping(String)
    Element.GetMapping<T>(String)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Elements
    Assembly: Hypar.Elements.dll
    Syntax
    public class PointLight : Light, INotifyPropertyChanged

    Constructors

    PointLight(Color, Transform, Double, Guid, String)

    A point light.

    Declaration
    public PointLight(Color color, Transform transform, double intensity = 1, Guid id = default(Guid), string name = null)
    Parameters
    Type Name Description
    Color color

    The light's color.

    Transform transform

    The light's transform.

    System.Double intensity

    The light's intensity measured in candela.

    System.Guid id

    The light's unique id.

    System.String name

    The light's name.

    Implements

    System.ComponentModel.INotifyPropertyChanged

    Extension Methods

    ElementProxyExtensions.Proxy<T>(T, String)
    Identity.AddOverrideIdentity(Element, IOverride)
    Identity.AddOverrideIdentity(Element, String, String, Object)
    Identity.AddOverrideValue(Element, String, Object)
    Identity.OverrideIds<T>(Element, String)