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

Represents a point light source. More...

Inheritance diagram for VectSharp.ThreeD.PointLightSource:

Public Member Functions

 PointLightSource (double intensity, Point3D position)
 Creates a new PointLightSource 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 .
 

Properties

bool CastsShadow = true [get, set]
 
Point3D Position [get, set]
 The position of the light source. More...
 
double Intensity [get, set]
 The base intensity of the light. More...
 
double DistanceAttenuationExponent = 2 [get, set]
 An exponent determining how fast the light attenuates with increasing distance. Set to 0 to disable distance attenuation. More...
 
- Properties inherited from VectSharp.ThreeD.ILightSource
bool CastsShadow [get]
 Determines whether the light casts a shadow or not. More...
 

Detailed Description

Represents a point light source.

Definition at line 184 of file Lights.cs.

Constructor & Destructor Documentation

◆ PointLightSource()

VectSharp.ThreeD.PointLightSource.PointLightSource ( double  intensity,
Point3D  position 
)

Creates a new PointLightSource instance.

Parameters
intensityThe intensity of the light.
positionThe position of the light source.

Definition at line 209 of file Lights.cs.

Property Documentation

◆ DistanceAttenuationExponent

double VectSharp.ThreeD.PointLightSource.DistanceAttenuationExponent = 2
getset

An exponent determining how fast the light attenuates with increasing distance. Set to 0 to disable distance attenuation.

Definition at line 202 of file Lights.cs.

◆ Intensity

double VectSharp.ThreeD.PointLightSource.Intensity
getset

The base intensity of the light.

Definition at line 197 of file Lights.cs.

◆ Position

Point3D VectSharp.ThreeD.PointLightSource.Position
getset

The position of the light source.

Definition at line 192 of file Lights.cs.


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