VectSharp 2.6.1
A light library for C# vector graphics
Loading...
Searching...
No Matches
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.
Parameters
pointThe Point3DElement at which the light intensity should be computed.
Returns
More...
 
double GetObstruction (Point3D point, IEnumerable< Triangle3DElement > shadowingTriangles)
 Determines the amount of obstruction of the light that results at point due to the specified shadowingTriangles .
Parameters
pointThe Point3D at which the obstruction should be computed.
shadowingTrianglesA collection of Triangle3DElement casting shadows.
Returns
1 if the light is completely obstructed, 0 if the light is completely visible, a value between these if the light is partially obstructed.
More...
 
LightIntensity GetLightAt (Point3D point)
 Computes the light intensity at the specified point, without taking into account any obstructions. More...
 
double GetObstruction (Point3D point, IEnumerable< Triangle3DElement > shadowingTriangles)
 Determines the amount of obstruction of the light that results at point due to the specified shadowingTriangles . More...
 

Properties

double Intensity [get, set]
 The intensity of the light. More...
 
bool CastsShadow [get]
 Determines whether the light casts a shadow or not. 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.

Member Function Documentation

◆ GetLightAt()

LightIntensity VectSharp.ThreeD.AmbientLightSource.GetLightAt ( Point3D  point)

Computes the light intensity at the specified point, without taking into account any obstructions.

Parameters
pointThe Point3DElement at which the light intensity should be computed.
Returns

Implements VectSharp.ThreeD.ILightSource.

Definition at line 111 of file Lights.cs.

◆ GetObstruction()

double VectSharp.ThreeD.AmbientLightSource.GetObstruction ( Point3D  point,
IEnumerable< Triangle3DElement >  shadowingTriangles 
)

Determines the amount of obstruction of the light that results at point due to the specified shadowingTriangles .

Parameters
pointThe Point3D at which the obstruction should be computed.
shadowingTrianglesA collection of Triangle3DElement casting shadows.
Returns
1 if the light is completely obstructed, 0 if the light is completely visible, a value between these if the light is partially obstructed.

Implements VectSharp.ThreeD.ILightSource.

Definition at line 117 of file Lights.cs.

Property Documentation

◆ CastsShadow

bool VectSharp.ThreeD.AmbientLightSource.CastsShadow
get

Determines whether the light casts a shadow or not.

Implements VectSharp.ThreeD.ILightSource.

Definition at line 99 of file Lights.cs.

◆ 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: