VectSharp  2.2.1
A light library for C# vector graphics
VectSharp.ThreeD.AmbientLightSource Class Reference

Represents a uniform ambien light source. More...

Inheritance diagram for VectSharp.ThreeD.AmbientLightSource:

Public Member Functions

 AmbientLightSource (double intensity)
 Creates a new AmbientLightSource instance. More...
 
LightIntensity GetLightAt (Point3D point)
 Computes the light intensity at the specified point, without taking into account any obstructions.
 
double GetObstruction (Point3D point, IEnumerable< Triangle3DElement > shadowingTriangles)
 Determines the amount of obstruction of the light that results at point due to the specified shadowingTriangles .
 

Public Attributes

bool CastsShadow => false
 

Properties

double Intensity [get, set]
 The intensity of the light. More...
 
- Properties inherited from VectSharp.ThreeD.ILightSource
bool CastsShadow [get]
 Determines whether the light casts a shadow or not. More...
 

Detailed Description

Represents a uniform ambien light source.

Definition at line 91 of file Lights.cs.

Constructor & Destructor Documentation

◆ AmbientLightSource()

VectSharp.ThreeD.AmbientLightSource.AmbientLightSource ( double  intensity)

Creates a new AmbientLightSource instance.

Parameters
intensityThe intensity of the light.

Definition at line 105 of file Lights.cs.

Property Documentation

◆ Intensity

double VectSharp.ThreeD.AmbientLightSource.Intensity
getset

The intensity of the light.

Definition at line 96 of file Lights.cs.


The documentation for this class was generated from the following file: