Skip to content

JoseBarrios/dc-size

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A structure that contains width and height values.

Usage


```js var CGSize = require('cg-size');

// Create an area with width and height var size = new CGSize(33.3, 50);

console.log( size.width, size.height ); // 30.3, 50

<h2><br></h2><h2>TODO</h2><hr><b>getWidthMidpoint()</b><div>Calculates the middle point for the width.</div><div>Returns: CGPoint</div>
<b>getHeightMidpoint()</b><div>Calculates the middle point for the height.</div><div>Returns: CGPoint</div>
<b>getAreaMidpoint()</b><div>Calculates the middle point for both width and height.</div><div>Returns: CGPoint</div>
<b>isLargerThanSize( size: CGSize )</b><div>Calculates its total area and compares it to another size object’s area.</div><div>Returns: Boolean</div>

About

A structure that contains width and height values.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published