Record Class LightingSimulator.LightSource
java.lang.Object
java.lang.Record
org.episteme.social.architecture.LightingSimulator.LightSource
- Record Components:
x- coordinatey- coordinatez- coordinateluminousIntensity- intensity in candelas (cd)
- All Implemented Interfaces:
Serializable
- Enclosing class:
LightingSimulator
public static record LightingSimulator.LightSource(double x, double y, double z, double luminousIntensity)
extends Record
implements Serializable
Represents a point light source in 3D space.
- Since:
- 1.0
- Version:
- 2.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLightSource(double x, double y, double z, double luminousIntensity) Creates an instance of aLightSourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of theluminousIntensityrecord component.final StringtoString()Returns a string representation of this record class.doublex()Returns the value of thexrecord component.doubley()Returns the value of theyrecord component.doublez()Returns the value of thezrecord component.
-
Constructor Details
-
LightSource
public LightSource(double x, double y, double z, double luminousIntensity) Creates an instance of aLightSourcerecord class.- Parameters:
x- the value for thexrecord componenty- the value for theyrecord componentz- the value for thezrecord componentluminousIntensity- the value for theluminousIntensityrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
x
-
y
-
z
-
luminousIntensity
public double luminousIntensity()Returns the value of theluminousIntensityrecord component.- Returns:
- the value of the
luminousIntensityrecord component
-